Skip to content

Commit 5c208c3

Browse files
author
Avaer Kazmer
committed
Make ew.js root-relative
1 parent fa7e729 commit 5c208c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ew.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const {key} = parseQuery(new URL(import.meta.url).search);
5050
if (!key) {
5151
console.warn('exokit-web API key not set! Web origins will not work. See https://github.com/exokitxr/exokit-web/');
5252
}
53-
await navigator.serviceWorker.register('sw.js' + (key ? `?key=${encodeURIComponent(key)}` : ''));
53+
await navigator.serviceWorker.register('/sw.js' + (key ? `?key=${encodeURIComponent(key)}` : ''));
5454
if (navigator.serviceWorker.controller) {
5555
GlobalContext.loadPromise.resolve();
5656
} else {

0 commit comments

Comments
 (0)