doing prettier

This commit is contained in:
Fathony 2022-03-18 14:05:49 +07:00 committed by Jordan Eldredge
parent e0724c338c
commit f637ccae7d
2 changed files with 6 additions and 7 deletions

View file

@ -171,11 +171,11 @@ export class UIRoot {
}
const url = imgCache.get(groupId);
// TODO: Techincally we only need one per image/gammagroup.
cssRules.push(` ${bitmap.getCSSVar()}: url(${url});`)
cssRules.push(` ${bitmap.getCSSVar()}: url(${url});`);
}
cssRules.unshift(':root{')
cssRules.push('}')
const cssEl = document.getElementById('bitmap-css');
cssRules.unshift(":root{");
cssRules.push("}");
const cssEl = document.getElementById("bitmap-css");
cssEl.textContent = cssRules.join("\n");
}

View file

@ -80,9 +80,8 @@ export function findLast<T>(
}
}
export function getUrlQuery(location:Location, variable:string):string {
return new URL(location.href).searchParams.get(variable)
export function getUrlQuery(location: Location, variable: string): string {
return new URL(location.href).searchParams.get(variable);
}
export class Emitter {