diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-17 22:01:01 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-17 22:01:01 +0900 |
commit | 74c53b9040669ad26604c42ec4c91ebd78e08439 (patch) | |
tree | 6706a24c2f76824b40ef1101f6f9a52b91aa97a1 | |
parent | c69cb944acc7fd02110777be2719eca6f891154b (diff) |
fix settings reload
-rw-r--r-- | src/content/components/common/index.js | 2 | ||||
-rw-r--r-- | src/shared/messages.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/content/components/common/index.js b/src/content/components/common/index.js index a05febd..5e977ae 100644 --- a/src/content/components/common/index.js +++ b/src/content/components/common/index.js @@ -28,7 +28,7 @@ export default class Common { } onMessage(message, sender) { - switch (message) { + switch (message.type) { case messages.SETTINGS_CHANGED: this.reloadSettings(); } diff --git a/src/shared/messages.js b/src/shared/messages.js index 581e167..134d71c 100644 --- a/src/shared/messages.js +++ b/src/shared/messages.js @@ -1,6 +1,4 @@ export default { - SETTINGS_QUERY: 'settings.query', - BACKGROUND_OPERATION: 'background.operation', CONSOLE_BLURRED: 'console.blured', @@ -23,4 +21,6 @@ export default { OPEN_URL: 'open.url', SETTINGS_RELOAD: 'settings.reload', + SETTINGS_CHANGED: 'settings.changed', + SETTINGS_QUERY: 'settings.query', }; |