fix settings reload

jh-changes
Shin'ya Ueoka 7 years ago
parent c69cb944ac
commit 74c53b9040
  1. 2
      src/content/components/common/index.js
  2. 4
      src/shared/messages.js

@ -28,7 +28,7 @@ export default class Common {
} }
onMessage(message, sender) { onMessage(message, sender) {
switch (message) { switch (message.type) {
case messages.SETTINGS_CHANGED: case messages.SETTINGS_CHANGED:
this.reloadSettings(); this.reloadSettings();
} }

@ -1,6 +1,4 @@
export default { export default {
SETTINGS_QUERY: 'settings.query',
BACKGROUND_OPERATION: 'background.operation', BACKGROUND_OPERATION: 'background.operation',
CONSOLE_BLURRED: 'console.blured', CONSOLE_BLURRED: 'console.blured',
@ -23,4 +21,6 @@ export default {
OPEN_URL: 'open.url', OPEN_URL: 'open.url',
SETTINGS_RELOAD: 'settings.reload', SETTINGS_RELOAD: 'settings.reload',
SETTINGS_CHANGED: 'settings.changed',
SETTINGS_QUERY: 'settings.query',
}; };