aboutsummaryrefslogtreecommitdiff
path: root/src/console/index.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-15 12:34:26 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-15 17:42:17 +0900
commitac5354020e5efdf6e284d4b36696b9f94d46bef9 (patch)
treeb515691907c341a053998bec269e54db1a3a8808 /src/console/index.js
parent4c9d0433a6ac851e72d50d6fb0451baa9d35fd35 (diff)
support multi-frame following
Diffstat (limited to 'src/console/index.js')
-rw-r--r--src/console/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console/index.js b/src/console/index.js
index 895fcc2..2ae5779 100644
--- a/src/console/index.js
+++ b/src/console/index.js
@@ -36,6 +36,6 @@ store.subscribe(() => {
});
browser.runtime.onMessage.addListener(onMessage);
-window.addEventListener('message', (message) => {
- onMessage(JSON.parse(message.data));
+window.addEventListener('message', (event) => {
+ onMessage(JSON.parse(event.data));
}, false);