more strict lint

This commit is contained in:
Shin'ya Ueoka 2017-09-17 08:59:12 +09:00
parent c5529958d5
commit 9ae814dfe4
21 changed files with 211 additions and 157 deletions
src/content

View file

@ -4,11 +4,11 @@ import * as scrolls from '../content/scrolls';
import * as histories from '../content/histories';
import Follow from '../content/follow';
import operations from '../operations';
import messages from '../messages';
import messages from '../messages';
consoleFrames.initialize(window.document);
window.addEventListener("keypress", (e) => {
window.addEventListener('keypress', (e) => {
if (e.target instanceof HTMLInputElement) {
return;
}
@ -40,14 +40,14 @@ const execOperation = (operation) => {
case operations.HISTORY_NEXT:
return histories.next(window);
}
}
};
const update = (state) => {
if (!state.console.commandShown) {
window.focus();
consoleFrames.blur(window.document);
}
}
};
browser.runtime.onMessage.addListener((action) => {
switch (action.type) {