mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15:22 +03:00
polishing serial backend and background page
This commit is contained in:
parent
49317da015
commit
a81cdb6d9d
3 changed files with 13 additions and 18 deletions
3
main.js
3
main.js
|
@ -2,10 +2,9 @@
|
|||
// This object is used to pass current connectionId to the backround page
|
||||
// so the onClosed event can close the port for us if it was left opened, without this
|
||||
// users can experience weird behavior if they would like to access the serial bus afterwards.
|
||||
var backgroundPage;
|
||||
chrome.runtime.getBackgroundPage(function(result) {
|
||||
backgroundPage = result;
|
||||
backgroundPage.connectionId = -1;
|
||||
backgroundPage.app_window = window;
|
||||
});
|
||||
|
||||
var timers = new Array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue