diff options
Diffstat (limited to 'src/content/components/top-content/index.js')
-rw-r--r-- | src/content/components/top-content/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content/components/top-content/index.js b/src/content/components/top-content/index.js index a2179da..c318901 100644 --- a/src/content/components/top-content/index.js +++ b/src/content/components/top-content/index.js @@ -14,19 +14,20 @@ export default class TopContent { // TODO make component consoleFrames.initialize(window.document); + + messages.onMessage(this.onMessage.bind(this)); } update() { this.children.forEach(c => c.update()); } - onMessage(message, sender) { + onMessage(message) { switch (message.type) { case messages.CONSOLE_HIDE_COMMAND: this.win.focus(); consoleFrames.blur(window.document); return Promise.resolve(); } - this.children.forEach(c => c.onMessage(message, sender)); } } |