Skip to content

Commit

Permalink
refactor: auto-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Jul 4, 2021
1 parent fb6a002 commit 593a3f3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ export async function saveApiKeys(): Promise<void> {
export async function saveSearcherStates(): Promise<void> {
const searcherStates: SearcherStates = {};
const searcherList = document.getElementById("searcher-list") as HTMLElement;
const radios = searcherList.querySelectorAll<HTMLInputElement>(
'[type="checkbox"]'
);
const radios =
searcherList.querySelectorAll<HTMLInputElement>('[type="checkbox"]');
for (const radio of radios) {
const name = radio.getAttribute("name");
if (name === null) {
Expand Down Expand Up @@ -115,9 +114,9 @@ export async function restoreGeneralSettings(): Promise<void> {
"general-settings"
) as HTMLElement;
const fragment: DocumentFragment = document.createDocumentFragment();
const template = (document.getElementById(
"general-settings-template"
) as HTMLElement).innerHTML;
const template = (
document.getElementById("general-settings-template") as HTMLElement
).innerHTML;

const elem = document.createElement("div");
elem.innerHTML = Mustache.render(template, generalSettings);
Expand Down

0 comments on commit 593a3f3

Please sign in to comment.