diff --git a/packages/webamp-modern-2/src/UIRoot.ts b/packages/webamp-modern-2/src/UIRoot.ts index c09edae3..08ab31b6 100644 --- a/packages/webamp-modern-2/src/UIRoot.ts +++ b/packages/webamp-modern-2/src/UIRoot.ts @@ -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"); } diff --git a/packages/webamp-modern-2/src/utils.ts b/packages/webamp-modern-2/src/utils.ts index 35b1fd2c..b11f1525 100644 --- a/packages/webamp-modern-2/src/utils.ts +++ b/packages/webamp-modern-2/src/utils.ts @@ -80,9 +80,8 @@ export function findLast( } } - -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 {