Skip to content

Commit 026a2af

Browse files
committed
Switch to type: classic as defalt for service workers
Because `module` doesn't work on Firefox ¬_¬ https://bugzilla.mozilla.org/show_bug.cgi?id=1360870
1 parent 9321048 commit 026a2af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/offline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { setCookie } from "../util"
44
class Offline {
55
serviceWorker
66

7-
async start(url = "/service-worker.js", { scope = "/", type = "module", native = true } = {}) {
7+
async start(url = "/service-worker.js", { scope = "/", type = "classic", native = true } = {}) {
88
if (!("serviceWorker" in navigator)) {
99
console.warn("Service Worker not available.")
1010
return

0 commit comments

Comments
 (0)