reopen command line after error

This commit is contained in:
Shin'ya Ueoka 2017-09-03 17:41:01 +09:00
parent e0bff54a82
commit 29f82d3a7f
3 changed files with 17 additions and 5 deletions

View file

@ -57,15 +57,15 @@ window.addEventListener('load', () => {
});
const showCommand = (text) => {
let input = window.document.querySelector('#vimvixen-console-command-input');
input.value = text;
input.focus();
let command = window.document.querySelector('#vimvixen-console-command');
command.style.display = 'block';
let error = window.document.querySelector('#vimvixen-console-error');
error.style.display = 'none';
let input = window.document.querySelector('#vimvixen-console-command-input');
input.value = text;
input.focus();
}
const showError = (text) => {