jh-changes
Shin'ya Ueoka 7 years ago
parent caf24779dd
commit d8c9651b77
  1. 2
      src/background/index.js
  2. 8
      src/content/index.js

@ -99,7 +99,5 @@ browser.runtime.onMessage.addListener((request, sender) => {
items: items items: items
}; };
}); });
break;
} }
return Promise.resolve();
}); });

@ -97,9 +97,9 @@ const doCompletion = (line) => {
text: keyword text: keyword
}).then((completions) => { }).then((completions) => {
vvConsole.setCompletions([completions]); vvConsole.setCompletions([completions]);
}).catch((e) => { }).catch((err) => {
console.error("Vim Vixen:", err); console.error("Vim Vixen:", err);
vvConsole.showError(e.message); vvConsole.showError(err.message);
}); });
} }
}; };
@ -115,9 +115,9 @@ messages.receive(window, (message) => {
browser.runtime.sendMessage({ browser.runtime.sendMessage({
type: 'event.cmd.enter', type: 'event.cmd.enter',
text: message.value text: message.value
}).catch((e) => { }).catch((err) => {
console.error("Vim Vixen:", err); console.error("Vim Vixen:", err);
vvConsole.showError(e.message); vvConsole.showError(err.message);
}); });
break; break;
case 'vimvixen.command.change': case 'vimvixen.command.change':