aboutsummaryrefslogtreecommitdiff
path: root/src/console/index.tsx
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:01:24 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:48:39 +0900
commit2e7006ce24c42ec2b6642346d153429338e7334e (patch)
treef1eb9e843ab4ec5d7d3f08fff8c858174b6f1284 /src/console/index.tsx
parent0881f92d20cb7b4f5a75671df739c3eaa3cd0ff0 (diff)
npm run lint:fix
Diffstat (limited to 'src/console/index.tsx')
-rw-r--r--src/console/index.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/console/index.tsx b/src/console/index.tsx
index b655154..1209ec2 100644
--- a/src/console/index.tsx
+++ b/src/console/index.tsx
@@ -14,7 +14,7 @@ const store = createStore(
);
window.addEventListener('load', () => {
- let wrapper = document.getElementById('vimvixen-console');
+ const wrapper = document.getElementById('vimvixen-console');
ReactDOM.render(
<Provider store={store} >
<Console></Console>
@@ -23,7 +23,7 @@ window.addEventListener('load', () => {
});
const onMessage = (message: any): any => {
- let msg = messages.valueOf(message);
+ const msg = messages.valueOf(message);
switch (msg.type) {
case messages.CONSOLE_SHOW_COMMAND:
return store.dispatch(consoleActions.showCommand(msg.command));
@@ -39,5 +39,5 @@ const onMessage = (message: any): any => {
};
browser.runtime.onMessage.addListener(onMessage);
-let port = browser.runtime.connect(undefined, { name: 'vimvixen-console' });
+const port = browser.runtime.connect(undefined, { name: 'vimvixen-console' });
port.onMessage.addListener(onMessage);