1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

removing a faulty attempt to resolve onClosed

This commit is contained in:
cTn 2013-06-19 01:48:43 +02:00
parent 11cd53f253
commit 52e46bd9e2

View file

@ -1,15 +1,3 @@
// Main window handlers
var chrome_window = chrome.app.window.current();
// This "automatic BUS close" feature is highly EXPERIMENTAL and could cause problems
chrome_window.onClosed.addListener(function() {
if (connectionId != -1) {
// connection still appears to be active
// we will try to "automatically" disconnect if possible to free the port
$('div#port-picker a.connect').click();
}
});
// OS detection // OS detection
var OS = "Unknown"; var OS = "Unknown";
if (navigator.appVersion.indexOf("Win") != -1) OS = "Windows"; if (navigator.appVersion.indexOf("Win") != -1) OS = "Windows";