summaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-15 21:13:58 -0700
committerAlex Yatskov <alex@foosoft.net>2017-03-15 21:13:58 -0700
commit8893db14caa6d34117dcb7e38ec1af32baa89b95 (patch)
tree9ef3655bed5e13751b4ea5488c92d132d250ead7 /ext/fg/js
parent8fb398aad8752f3307452f1a1d3459bace77a97c (diff)
wip
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/display-frame.js2
-rw-r--r--ext/fg/js/popup.js4
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;
}