Skip to content
Permalink
Browse files
fix(workbox): always prepend routerBase to swURL
fixes #157
  • Loading branch information
pooya parsa committed Mar 5, 2019
1 parent 45fc182 commit d3a52b6e9e5672e06e69269152b9625ae1152b17
Showing 1 changed file with 1 addition and 3 deletions.
@@ -31,9 +31,7 @@ function getOptions (moduleOptions) {
}

// swURL
if (!options.swURL) {
options.swURL = joinUrl(options.routerBase, 'sw.js')
}
options.swURL = joinUrl(options.routerBase, options.swURL || 'sw.js')

// swScope
if (!options.swScope) {

0 comments on commit d3a52b6

Please sign in to comment.