From 8893db14caa6d34117dcb7e38ec1af32baa89b95 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 15 Mar 2017 21:13:58 -0700 Subject: wip --- ext/fg/js/display-frame.js | 2 -- ext/fg/js/popup.js | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'ext/fg') 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; } -- cgit v1.2.3