Skip to content

Commit

Permalink
fix: sveltekit custom service worker (js)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Oct 19, 2024
1 parent f840032 commit f242022
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@vite-pwa/create-pwa",
"type": "module",
"version": "0.4.2",
"packageManager": "pnpm@9.9.0",
"packageManager": "pnpm@9.12.2",
"description": "PWA Templates",
"author": "antfu <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const WorkboxVersion = '^7.1.0'
export const VitePluginPWAVersion = '^0.20.5'
export const PWAAssetsVersion = '^0.2.6'
export const NuxtPWAModuleVersion = '^0.10.5'
export const SvelteKitPWAVersion = '^0.6.5'
export const SvelteKitPWAVersion = '^0.6.6'
export const RemixPWAVersion = '^0.1.3'
export const TypeScriptVersion = '^5.4.5'
export const VueTscVersion = '^2.1.4'
Expand Down
2 changes: 1 addition & 1 deletion templates/template-custom-svelte-kit/src/claims-sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (import.meta.env.DEV)

// to allow work offline
registerRoute(new NavigationRoute(
createHandlerBoundToURL('index.html'),
createHandlerBoundToURL('/'),
{ allowlist },
))

Expand Down
2 changes: 1 addition & 1 deletion templates/template-custom-svelte-kit/src/prompt-sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ if (import.meta.env.DEV)

// to allow work offline
registerRoute(new NavigationRoute(
createHandlerBoundToURL('index.html'),
createHandlerBoundToURL('/'),
{ allowlist },
))

0 comments on commit f242022

Please sign in to comment.