Skip to content

Commit 46207cf

Browse files
deansheathergeiseri
andcommitted
register service worker at relative scope
Co-Authored-By: Ian Reinhart Geiser <[email protected]>
1 parent a2ad3d4 commit 46207cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
if ("serviceWorker" in navigator) {
3030
// Use the window load event to keep the page load performant
3131
window.addEventListener("load", () => {
32-
navigator.serviceWorker.register("/service-worker.js");
32+
navigator.serviceWorker.register('service-worker.js', {scope: './'});
3333
});
3434
}
3535
</script>

0 commit comments

Comments
 (0)