fix on unfocus

This commit is contained in:
Shin'ya Ueoka 2017-11-11 18:34:57 +09:00
parent 12db4943ee
commit e3409b3aae

View file

@ -57,7 +57,8 @@ export default class ConsoleComponent {
browser.runtime.sendMessage({ browser.runtime.sendMessage({
type: messages.CONSOLE_ENTER_COMMAND, type: messages.CONSOLE_ENTER_COMMAND,
text: value, text: value,
}).then(this.hideCommand); });
this.hideCommand();
} else if (state.mode === 'find') { } else if (state.mode === 'find') {
this.hideCommand(); this.hideCommand();
window.top.postMessage(JSON.stringify({ window.top.postMessage(JSON.stringify({