summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/backend.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index f94463aa..6d23b695 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -629,6 +629,10 @@ class Backend {
chrome.tabs.create({url});
return;
case 'popup':
+ if (!isObject(chrome.windows)) {
+ // chrome.windows not supported (e.g. on Firefox mobile)
+ return;
+ }
if (this.popupWindow !== null) {
const callback = () => this.checkLastError(chrome.runtime.lastError);
chrome.windows.remove(this.popupWindow.id, callback);