summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorevgeny <me@ch1p.com>2016-07-11 00:03:14 +0300
committerevgeny <me@ch1p.com>2016-07-11 00:03:14 +0300
commit5fe2fad6b5355faa1517e59def58765cc0d29e25 (patch)
tree16150d7b2133db884eb4376183f4634b442c6082
parente3138fa7ab40dc2fda32f8768d29fa568acfd172 (diff)
bugfix
-rw-r--r--bootstrap.js7
-rw-r--r--tablocation.xpibin34237 -> 34257 bytes
2 files changed, 6 insertions, 1 deletions
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
--- a/tablocation.xpi
+++ b/tablocation.xpi
Binary files differ