mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15:22 +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
|
@ -233,8 +233,7 @@ LogoManager.openImage = function () {
|
|||
accepts: this.acceptFileTypes,
|
||||
};
|
||||
chrome.fileSystem.chooseEntry(dialogOptions, fileEntry => {
|
||||
if (chrome.runtime.lastError) {
|
||||
console.error(chrome.runtime.lastError.message);
|
||||
if (checkChromeRuntimeError()) {
|
||||
return;
|
||||
}
|
||||
// load and validate selected image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue