diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-08-09 21:07:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-09 21:07:11 -0400 |
commit | 2a86d6609210a586ec32c48a99904c9b64744d04 (patch) | |
tree | e87b3a7abb84c1d1dbb51d27de100288d00df155 /ext/fg/js/popup.js | |
parent | 9f8f83508e6d8e469b8cd89c1fb3ec85601401d8 (diff) |
DOM + DocumentUtil merge (#727)
* Add DOM functions to DocumentUtil
* Use DocumentUtil instead of DOM
* Remove DOM
* Move document-util.js into mixed
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r-- | ext/fg/js/popup.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 22672706..8ea1afd0 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -16,7 +16,7 @@ */ /* global - * DOM + * DocumentUtil * FrameClient * api * dynamicLoader @@ -349,7 +349,7 @@ class Popup { return; } - DOM.addFullscreenChangeEventListener(this._onFullscreenChanged.bind(this), this._fullscreenEventListeners); + DocumentUtil.addFullscreenChangeEventListener(this._onFullscreenChanged.bind(this), this._fullscreenEventListeners); } _onFullscreenChanged() { @@ -475,7 +475,7 @@ class Popup { _getFrameParentElement() { const defaultParent = document.body; - const fullscreenElement = DOM.getFullscreenElement(); + const fullscreenElement = DocumentUtil.getFullscreenElement(); if ( fullscreenElement === null || fullscreenElement.shadowRoot || |