aboutsummaryrefslogtreecommitdiff
path: root/src/console/components
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-11-11 18:34:57 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-11-11 18:34:57 +0900
commite3409b3aaea81eca6e10df0b1880067ddf4df961 (patch)
tree89184d15ab800461490d93d0a952b553f234d3ff /src/console/components
parent12db4943ee54e1b0b48c806cde589254cb6fef51 (diff)
fix on unfocus
Diffstat (limited to 'src/console/components')
-rw-r--r--src/console/components/console.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/console/components/console.js b/src/console/components/console.js
index 38e32d7..7bc3364 100644
--- a/src/console/components/console.js
+++ b/src/console/components/console.js
@@ -57,7 +57,8 @@ export default class ConsoleComponent {
browser.runtime.sendMessage({
type: messages.CONSOLE_ENTER_COMMAND,
text: value,
- }).then(this.hideCommand);
+ });
+ this.hideCommand();
} else if (state.mode === 'find') {
this.hideCommand();
window.top.postMessage(JSON.stringify({