message constants

This commit is contained in:
Shin'ya Ueoka 2017-09-16 20:26:13 +09:00
parent 83cb277ba2
commit c7a3dd16e6
5 changed files with 10 additions and 5 deletions

View file

@ -32,7 +32,7 @@ backgroundStore.subscribe(() => {
browser.tabs.query({ active: true, currentWindow: true }).then((tabs) => {
if (tabs.length > 0) {
return browser.tabs.sendMessage(tabs[0].id, {
type: 'state.changed',
type: messages.STATE_UPDATE,
state: backgroundStore.getState()
});
}