diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-06-22 19:27:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 19:27:40 -0400 |
commit | 96932119f8627725774ffdc66a82326d7302db30 (patch) | |
tree | 66ea1ad8c78f5bbdc5a3db285ccdfe552e2ab32e | |
parent | 65c41975a6dca0610c7dc4454ece9534f3636893 (diff) |
Remove window. from visualViewport, use local variable instead (#621)
-rw-r--r-- | ext/fg/js/frontend.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index 71e53b03..ae0953f9 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -106,8 +106,8 @@ class Frontend { const visualViewport = window.visualViewport; if (visualViewport !== null && typeof visualViewport === 'object') { - window.visualViewport.addEventListener('scroll', this._onVisualViewportScroll.bind(this)); - window.visualViewport.addEventListener('resize', this._onVisualViewportResize.bind(this)); + visualViewport.addEventListener('scroll', this._onVisualViewportScroll.bind(this)); + visualViewport.addEventListener('resize', this._onVisualViewportResize.bind(this)); } yomichan.on('orphaned', this._onOrphaned.bind(this)); |