aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-09 20:16:51 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-09 20:16:51 +0900
commit0eed357a5e1ceb3061d88ef99a612bb8c4526fa7 (patch)
tree5b27df7f5c71aab984c3175ac5fd6063801c10f4 /src/background
parent3d35db9fc1f1af20867bfc235e962667f8615b6e (diff)
broadcast an action
Diffstat (limited to 'src/background')
-rw-r--r--src/background/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/background/index.js b/src/background/index.js
index 171f90e..61d4895 100644
--- a/src/background/index.js
+++ b/src/background/index.js
@@ -96,5 +96,7 @@ browser.runtime.onMessage.addListener((request, sender) => {
items: items
};
});
+ default:
+ return browser.tabs.sendMessage(sender.tab.id, request);
}
});