diff options
Diffstat (limited to 'src/console/console-frame.js')
-rw-r--r-- | src/console/console-frame.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/console/console-frame.js b/src/console/console-frame.js index a590da9..f07d8ab 100644 --- a/src/console/console-frame.js +++ b/src/console/console-frame.js @@ -1,5 +1,4 @@ import './console-frame.scss'; -import * as messages from '../shared/messages'; export default class ConsoleFrame { constructor(win) { @@ -33,9 +32,10 @@ export default class ConsoleFrame { type: 'vimvixen.console.show.error', text: text }; - messages.send(this.element.contentWindow, message); this.errorShown = true; this.element.blur(); + + return browser.runtime.sendMessage(message); } showFrame() { @@ -53,7 +53,7 @@ export default class ConsoleFrame { } setCompletions(completions) { - messages.send(this.element.contentWindow, { + return browser.runtime.sendMessage({ type: 'vimvixen.console.set.completions', completions: completions }); |