Skip to content

Commit

Permalink
fix: offlinePage syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
galvez committed Aug 24, 2018
1 parent 261cfaf commit af21d74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"contributors": [
"Pooya Parsa <pooya@pi0.ir>",
"manniL <hello@lichter.io>",
"galvez <jonasgalvez@gmail.com>"
"Alexander Lichter <hello@lichter.io>",
"Jonas Galvez <jonasgalvez@gmail.com>"
],
"scripts": {
"test": "npm run lint && jest",
Expand Down
2 changes: 1 addition & 1 deletion packages/workbox/templates/sw.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ workbox.routing.registerRoute(new RegExp('<%= r.urlPattern %>'), workbox.strateg
const strategy = workbox.strategies.staleWhileRevalidate()
workbox.routing.registerRoute(new RegExp('/.*'), ({event}) => {
return strategy.handle({event})
.catch(() => caches.match('<%= options.offlinePage %>')
.catch(() => caches.match('<%= options.offlinePage %>'))
})<% } %>

<% if (options.routingExtensions) { %><%= options.routingExtensions %><% } %>

0 comments on commit af21d74

Please sign in to comment.