diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-05-10 14:10:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 14:10:02 -0400 |
commit | dd6c3015c4af6db5f1deca797366ed6269b7d82c (patch) | |
tree | 20724fc8f300ac7d6e9367639a751bb7c1d602bd /ext/fg/js/popup.js | |
parent | f85508a25edb49de96bebb77a5832931f0819eff (diff) |
Use both shadowRoot and openOrClosedShadowRoot (#534)
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r-- | ext/fg/js/popup.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index d45c7c2a..9e9debd8 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -530,7 +530,11 @@ class Popup { _getFrameParentElement() { const defaultParent = document.body; const fullscreenElement = DOM.getFullscreenElement(); - if (fullscreenElement === null || fullscreenElement.shadowRoot) { + if ( + fullscreenElement === null || + fullscreenElement.shadowRoot || + fullscreenElement.openOrClosedShadowRoot // Available to Firefox 63+ for WebExtensions + ) { return defaultParent; } |