Merge pull request #1325 from breadoven/abo_fix_log_txt_ext

Fix log file txt extension
pull/1327/head
Paweł Spychalski 3 years ago committed by GitHub
commit 78759b83d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
});
}

Loading…
Cancel
Save