From ce3faac6e68975f45e8de3650f55b0e820860b13 Mon Sep 17 00:00:00 2001 From: breadoven <56191411+breadoven@users.noreply.github.com> Date: Wed, 11 Aug 2021 16:23:12 +0100 Subject: [PATCH] Update onboard_logging.js --- tabs/onboard_logging.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tabs/onboard_logging.js b/tabs/onboard_logging.js index 454f900b..dacdf413 100644 --- a/tabs/onboard_logging.js +++ b/tabs/onboard_logging.js @@ -100,7 +100,7 @@ TABS.onboard_logging.initialize = function (callback) { helper.features.reset(); helper.features.fromUI($('.require-blackbox-supported')); - helper.features.execute(function () { + helper.features.execute(function () { mspHelper.sendBlackboxConfiguration(save_to_eeprom); }); }); @@ -354,12 +354,10 @@ TABS.onboard_logging.initialize = function (callback) { const filename = 'blackbox_log_' + date.getFullYear() + '-' + zeroPad(date.getMonth() + 1, 2) + '-' + zeroPad(date.getDate(), 2) + '_' + zeroPad(date.getHours(), 2) + zeroPad(date.getMinutes(), 2) + zeroPad(date.getSeconds(), 2); - const accepts = [{ - description: 'TXT files', extensions: ['txt'], - }]; + const accepts = '.txt'; nwdialog.setContext(document); - nwdialog.saveFileDialog(filename, accepts, '', function(file) { + nwdialog.saveFileDialog(filename, accepts, '', function(file) { onComplete(file); }); }