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

@ -171,7 +171,7 @@ const update = (state) => {
}
browser.runtime.onMessage.addListener((action) => {
if (action.type === 'state.changed') {
if (action.type === messages.STATE_UPDATE) {
return update(action.state.console);
}
});