diff options
Diffstat (limited to 'ext/fg/js')
| -rw-r--r-- | ext/fg/js/display-frame.js | 2 | ||||
| -rw-r--r-- | ext/fg/js/popup.js | 4 | 
2 files changed, 2 insertions, 4 deletions
| diff --git a/ext/fg/js/display-frame.js b/ext/fg/js/display-frame.js index bc2e15df..8f15b1bc 100644 --- a/ext/fg/js/display-frame.js +++ b/ext/fg/js/display-frame.js @@ -55,12 +55,10 @@ window.displayFrame = new class extends Display {      onMessage(e) {          const handlers = new class {              api_showTermDefs({definitions, options, context}) { -                window.scrollTo(0, 0);                  this.showTermDefs(definitions, options, context);              }              api_showKanjiDefs({definitions, options, context}) { -                window.scrollTo(0, 0);                  this.showKanjiDefs(definitions, options, context);              } diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 7da75446..210a3688 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -24,8 +24,8 @@ class Popup {          this.container.addEventListener('mousedown', e => e.stopPropagation());          this.container.addEventListener('scroll', e => e.stopPropagation());          this.container.setAttribute('src', chrome.extension.getURL('/fg/frame.html')); -        this.container.style.width='0px'; -        this.container.style.height='0px'; +        this.container.style.width = '0px'; +        this.container.style.height = '0px';          this.injected = false;      } |