aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-05 15:42:35 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-05 18:15:24 +0900
commitd8c9651b776296bdb5eb1a8687f633e60feafb10 (patch)
tree12319cac817589067c322e0d113abe4cb42039e7
parentcaf24779ddfdceb5e9a0fab4f55c92c8d52cda7f (diff)
fix
-rw-r--r--src/background/index.js2
-rw-r--r--src/content/index.js8
2 files changed, 4 insertions, 6 deletions
diff --git a/src/background/index.js b/src/background/index.js
index 4aa3856..8913a83 100644
--- a/src/background/index.js
+++ b/src/background/index.js
@@ -99,7 +99,5 @@ browser.runtime.onMessage.addListener((request, sender) => {
items: items
};
});
- break;
}
- return Promise.resolve();
});
diff --git a/src/content/index.js b/src/content/index.js
index e682a7f..fdc7e89 100644
--- a/src/content/index.js
+++ b/src/content/index.js
@@ -97,9 +97,9 @@ const doCompletion = (line) => {
text: keyword
}).then((completions) => {
vvConsole.setCompletions([completions]);
- }).catch((e) => {
+ }).catch((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({
type: 'event.cmd.enter',
text: message.value
- }).catch((e) => {
+ }).catch((err) => {
console.error("Vim Vixen:", err);
- vvConsole.showError(e.message);
+ vvConsole.showError(err.message);
});
break;
case 'vimvixen.command.change':