From 52e46bd9e2bedb3f636fe8624b9dc8dbd3c39810 Mon Sep 17 00:00:00 2001 From: cTn Date: Wed, 19 Jun 2013 01:48:43 +0200 Subject: [PATCH] removing a faulty attempt to resolve onClosed --- js/main.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/js/main.js b/js/main.js index a92b8084c7..6ce5e6062c 100644 --- a/js/main.js +++ b/js/main.js @@ -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 var OS = "Unknown"; if (navigator.appVersion.indexOf("Win") != -1) OS = "Windows";