From 5fe2fad6b5355faa1517e59def58765cc0d29e25 Mon Sep 17 00:00:00 2001 From: evgeny Date: Mon, 11 Jul 2016 00:03:14 +0300 Subject: bugfix --- bootstrap.js | 7 ++++++- tablocation.xpi | Bin 34237 -> 34257 bytes 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bootstrap.js b/bootstrap.js index f4436f1..276b623 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -202,7 +202,12 @@ var Controller = { } }, tearDownWindow: function(chromeWindow) { - var tabsCount = chromeWindow.gBrowser.browsers.length; + var tabsCount; + try { + tabsCount = chromeWindow.gBrowser.browsers.length; + } catch (e) { + return + } for (var i = 0; i < tabsCount; i++) { Controller.tearDownTab(chromeWindow, i); } diff --git a/tablocation.xpi b/tablocation.xpi index 08ce2d5..6b8c1bc 100644 Binary files a/tablocation.xpi and b/tablocation.xpi differ -- cgit v1.2.3