diff options
-rw-r--r-- | src/background/components/background.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/background/components/background.js b/src/background/components/background.js index 06b6900..266ad64 100644 --- a/src/background/components/background.js +++ b/src/background/components/background.js @@ -43,7 +43,7 @@ export default class BackgroundComponent { type: messages.CONSOLE_HIDE_COMMAND, }); case messages.CONSOLE_ENTERED: - return commands.exec(message.text, this.settings).catch((e) => { + return commands.exec(message.text, this.settings.value).catch((e) => { return browser.tabs.sendMessage(sender.tab.id, { type: messages.CONSOLE_SHOW_ERROR, text: e.message, @@ -52,7 +52,7 @@ export default class BackgroundComponent { case messages.SETTINGS_QUERY: return Promise.resolve(this.store.getState().value); case messages.CONSOLE_QUERY_COMPLETIONS: - return commands.complete(message.text, this.settings); + return commands.complete(message.text, this.settings.value); case messages.SETTINGS_RELOAD: this.store.dispatch(settingsActions.load()); return this.broadcastSettingsChanged(); |