diff options
Diffstat (limited to 'src/content/components/common/index.js')
-rw-r--r-- | src/content/components/common/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content/components/common/index.js b/src/content/components/common/index.js index 5e977ae..98a2337 100644 --- a/src/content/components/common/index.js +++ b/src/content/components/common/index.js @@ -21,18 +21,19 @@ export default class Common { ]; this.reloadSettings(); + + messages.onMessage(this.onMessage.bind(this)); } update() { this.children.forEach(c => c.update()); } - onMessage(message, sender) { + onMessage(message) { switch (message.type) { case messages.SETTINGS_CHANGED: this.reloadSettings(); } - this.children.forEach(c => c.onMessage(message, sender)); } reloadSettings() { |