mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
possible bugfix for last_port_used creation fail
This commit is contained in:
parent
48ceb6bb66
commit
11cd53f253
1 changed files with 6 additions and 0 deletions
|
@ -240,6 +240,12 @@ function onOpen(openInfo) {
|
|||
// console.log('Last selected port was saved in chrome.storage.');
|
||||
});
|
||||
}
|
||||
} else {
|
||||
// variable isn't stored yet, saving
|
||||
chrome.storage.local.set({'last_used_port': selected_port}, function() {
|
||||
// Debug message is currently disabled (we dont need to spam the console log with that)
|
||||
// console.log('Last selected port was saved in chrome.storage.');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue