Skip to content

Commit 3fbb3a2

Browse files
committed
fix: Continued undefined error in serverWorker registration
1 parent d45178c commit 3fbb3a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if ("serviceWorker" in window.navigator) {
3737
}
3838
);
3939

40-
if (maybePromise) {
40+
if (maybePromise && maybePromise.then) {
4141
maybePromise
4242
.then((registration) => {
4343
console.log("SW registered: ", registration);

0 commit comments

Comments
 (0)