mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 01:05:15 +03:00
Fix and add check for chrome.runtime.lastError
This commit is contained in:
parent
0f8a2911d9
commit
431aa6bac8
13 changed files with 83 additions and 121 deletions
|
@ -102,6 +102,10 @@ TABS.logging.initialize = function (callback) {
|
|||
ConfigStorage.get('logging_file_entry', function (result) {
|
||||
if (result.logging_file_entry) {
|
||||
chrome.fileSystem.restoreEntry(result.logging_file_entry, function (entry) {
|
||||
if (checkChromeRuntimeError()) {
|
||||
return;
|
||||
}
|
||||
|
||||
fileEntry = entry;
|
||||
prepare_writer(true);
|
||||
});
|
||||
|
@ -240,8 +244,7 @@ TABS.logging.initialize = function (callback) {
|
|||
|
||||
// create or load the file
|
||||
chrome.fileSystem.chooseEntry({type: 'saveFile', suggestedName: filename, accepts: accepts}, function(entry) {
|
||||
if (!entry) {
|
||||
console.log('No file selected');
|
||||
if (checkChromeRuntimeError()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue