aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/js/app/popup.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/js/app/popup.js b/ext/js/app/popup.js
index 43699735..63657dd3 100644
--- a/ext/js/app/popup.js
+++ b/ext/js/app/popup.js
@@ -503,7 +503,10 @@ class Popup extends EventDispatcher {
}
_getFrameParentElement() {
- const defaultParent = document.body;
+ let defaultParent = document.body;
+ if (defaultParent !== null && defaultParent.tagName.toLowerCase() === 'frameset') {
+ defaultParent = document.documentElement;
+ }
const fullscreenElement = DocumentUtil.getFullscreenElement();
if (
fullscreenElement === null ||