TSLint compliance

This commit is contained in:
hensm
2020-02-15 06:06:57 +00:00
parent 809a591bbd
commit 14999a4f57
19 changed files with 219 additions and 77 deletions

View File

@@ -390,7 +390,7 @@ class OptionsApp extends Component<{}, OptionsAppState> {
{ _("optionsUserAgentWhitelistContent") }
</div>
<div className="option__control">
{ this.state.options?.userAgentWhitelist &&
{ this.state.options?.userAgentWhitelist &&
<EditableList data={ this.state.options.userAgentWhitelist }
onChange={ this.handleWhitelistChange }
itemPattern={ REMOTE_MATCH_PATTERN_REGEX }

View File

@@ -277,7 +277,7 @@ class ReceiverEntry extends Component<ReceiverEntryProps, ReceiverEntryState> {
showAlternateAction: ev.type === "keydown"
});
}
}
};
window.addEventListener("keydown", handleActionKeyEvents);
window.addEventListener("keyup", handleActionKeyEvents);