diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-17 09:00:41 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-17 09:00:41 +0900 |
commit | cd4708898134f5966f87df4aeaa8ed8c60e7943f (patch) | |
tree | db082d9cb2ec426010556dbc24ab439c9757afbd /src/content/hint.js | |
parent | c5529958d53146c8c6826673abe6431a19f1924d (diff) | |
parent | 9ae814dfe45426f8df9b89b305392770344a7d50 (diff) |
Merge branch 'lint'
Diffstat (limited to 'src/content/hint.js')
-rw-r--r-- | src/content/hint.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/content/hint.js b/src/content/hint.js index fabf725..c75ca8b 100644 --- a/src/content/hint.js +++ b/src/content/hint.js @@ -8,10 +8,9 @@ export default class Hint { this.target = target; - let doc = target.ownerDocument + let doc = target.ownerDocument; let { top, left } = target.getBoundingClientRect(); - let scrollX = window.scrollX; - let scrollY = window.scrollY; + let { scrollX, scrollY } = window; this.element = doc.createElement('span'); this.element.className = 'vimvixen-hint'; |