Skip to content

Commit 9cc085c

Browse files
authored
fix(client): don't create prefetch link when offline (#5534)
1 parent 2287aa9 commit 9cc085c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/client/app/composables/preFetch.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ export function usePrefetch() {
5050
return
5151
}
5252

53+
if ('onLine' in navigator && !navigator.onLine) {
54+
return
55+
}
56+
5357
let conn
5458
if (
5559
(conn = (navigator as any).connection) &&

0 commit comments

Comments
 (0)