From e3409b3aaea81eca6e10df0b1880067ddf4df961 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 11 Nov 2017 18:34:57 +0900 Subject: [PATCH] fix on unfocus --- src/console/components/console.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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({