1
0
Fork 0
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:
cTn 2013-12-06 18:32:32 +01:00
parent 49317da015
commit a81cdb6d9d
3 changed files with 13 additions and 18 deletions

View file

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