aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-09 20:44:14 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-09 20:44:14 +0900
commit0f9bcbd395dd0051e1bb8b64adbcb9b354101a81 (patch)
treeb8027cd6de5d04c450043df178d4b11c87ce0854
parent447466808f484d4baa6b285f2dbcaf1920db5498 (diff)
fix degrate
-rw-r--r--src/background/components/background.js4
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();