1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 22:35:17 +03:00

Set file type descriptions for open / save dialogs.

This commit is contained in:
mikeller 2018-07-17 22:01:18 +12:00
parent 1a2fe994fd
commit eec1388a2d
8 changed files with 11 additions and 11 deletions

View file

@ -445,7 +445,7 @@ TABS.onboard_logging.initialize = function (callback) {
var filename = generateFilename(prefix, suffix);
chrome.fileSystem.chooseEntry({type: 'saveFile', suggestedName: filename,
accepts: [{extensions: [suffix]}]}, function(fileEntry) {
accepts: [{description: suffix.toUpperCase() + ' files', extensions: [suffix]}]}, function(fileEntry) {
var error = chrome.runtime.lastError;
if (error) {