Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nuxt-community/pwa-module
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 82df675bc1f6ec3eef91e8087a7cce4888e63252
Choose a base ref
..
head repository: nuxt-community/pwa-module
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8cf28453d7d7d9b9056dd2229a91d714086d8260
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/workbox/sw.js
2 changes: 1 addition & 1 deletion templates/workbox/sw.js
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ function offlinePage(workbox, options) {
const strategy = new workbox.strategies[options.offlineStrategy]
return strategy
.handle({ request, event })
.catch(() => caches.matchPrecache(options.offlinePage))
.catch(() => workbox.precaching.matchPrecache(options.offlinePage))
})
}
}