diff --git a/packages/client/src/scripts/initialize-sw.ts b/packages/client/src/scripts/initialize-sw.ts index 7bacfbdf00..04d39b66d2 100644 --- a/packages/client/src/scripts/initialize-sw.ts +++ b/packages/client/src/scripts/initialize-sw.ts @@ -6,7 +6,7 @@ import { lang } from '@/config'; export async function initializeSw() { if (!('serviceWorker' in navigator)) return; - navigator.serviceWorker.register(`/sw.js`, { scope: '/', type: 'classic' }); + navigator.serviceWorker.register('/sw.js', { scope: '/', type: 'classic' }); navigator.serviceWorker.ready.then(registration => { registration.active?.postMessage({ msg: 'initialize', diff --git a/packages/client/src/scripts/physics.ts b/packages/client/src/scripts/physics.ts index 9e657906c2..47a168eed3 100644 --- a/packages/client/src/scripts/physics.ts +++ b/packages/client/src/scripts/physics.ts @@ -109,7 +109,7 @@ export function physics(container: HTMLElement) { render.mouse = mouse; for (const objEl of objEls) { - objEl.style.position = `absolute`; + objEl.style.position = 'absolute'; objEl.style.top = 0; objEl.style.left = 0; objEl.style.margin = 0;