aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/frontend.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 94edeb12..f02d5609 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -32,6 +32,7 @@ class Frontend {
parentPopupId,
parentFrameId,
useProxyPopup,
+ canUseWindowPopup=true,
allowRootFramePopupProxy,
childrenSupported=true,
hotkeyHandler
@@ -43,6 +44,7 @@ class Frontend {
this._parentPopupId = parentPopupId;
this._parentFrameId = parentFrameId;
this._useProxyPopup = useProxyPopup;
+ this._canUseWindowPopup = canUseWindowPopup;
this._allowRootFramePopupProxy = allowRootFramePopupProxy;
this._childrenSupported = childrenSupported;
this._hotkeyHandler = hotkeyHandler;
@@ -371,7 +373,7 @@ class Frontend {
const currentPopup = this._popup;
let popupPromise;
- if (usePopupWindow) {
+ if (usePopupWindow && this._canUseWindowPopup) {
popupPromise = this._popupCache.get('window');
if (typeof popupPromise === 'undefined') {
popupPromise = this._getPopupWindow();