aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-10-17 09:14:49 -0700
committerAlex Yatskov <alex@foosoft.net>2016-10-17 09:14:49 -0700
commitf22fcb0a5d5ef5b3003fbfabf21713bc889d0942 (patch)
treee3a2b058ad8ddf6f1897666c1d1bcf46eade9561 /ext/fg/js/popup.js
parentaa1a2b01763aab7e0880ec20f8c05bdd11e94c5d (diff)
Cleanup, reset scroll position on definition lookup (#20)
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r--ext/fg/js/popup.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 83da3fe1..2a2f7c54 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -66,6 +66,8 @@ class Popup {
return;
}
+ this.container.contentWindow.scrollTo(0, 0);
+
const doc = this.container.contentDocument;
doc.open();
doc.write(content);