aboutsummaryrefslogtreecommitdiff
path: root/ext/client.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-02 12:56:47 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-02 12:56:47 -0700
commita6fda6c94340c570442fbd20db2ab99a8bbcf289 (patch)
treeb02cda4bd584ae1a70130f9c16ba9848f6dbe0a2 /ext/client.js
parent036639aeafccfa20db0edd4780abbd391da74922 (diff)
Work with new dictionary format
Diffstat (limited to 'ext/client.js')
-rw-r--r--ext/client.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/client.js b/ext/client.js
index 1c8c0a9f..2d9a470f 100644
--- a/ext/client.js
+++ b/ext/client.js
@@ -27,9 +27,7 @@ class Client {
this.popup.classList.add('yomichan-popup');
this.popup.addEventListener('mousedown', (e) => e.stopPropagation());
this.popup.addEventListener('scroll', (e) => e.stopPropagation());
-
- const base = document.body.appendChild('div');
- base.createShadowRoot().appendChild(this.popup);
+ document.body.appendChild(this.popup);
chrome.runtime.onMessage.addListener(this.onMessage.bind(this));
window.addEventListener('mousedown', this.onMouseDown.bind(this));