diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-18 22:04:30 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-18 22:04:30 +0900 |
commit | 903c9c78b7965b3a046ad90af36e3cac676da452 (patch) | |
tree | 52cde5919c1940a18ac03b59b90fa42116036308 /src/content/index.js | |
parent | 86431e82f75af48f1a8b98c95257714ff75261fc (diff) |
remove message propagation
Diffstat (limited to 'src/content/index.js')
-rw-r--r-- | src/content/index.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/content/index.js b/src/content/index.js index e01172d..77249f8 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -14,16 +14,4 @@ store.subscribe(() => { rootComponent.update(); }); -browser.runtime.onMessage.addListener(msg => rootComponent.onMessage(msg)); rootComponent.update(); - -window.addEventListener('message', (event) => { - let message = null; - try { - message = JSON.parse(event.data); - } catch (e) { - // ignore unexpected message - return; - } - rootComponent.onMessage(message, event.source); -}); |