Skip to content

Commit

Permalink
fix(workbox): always prepend routerBase to swURL
Browse files Browse the repository at this point in the history
fixes #157
  • Loading branch information
pooya parsa committed Mar 5, 2019
1 parent 45fc182 commit d3a52b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/workbox/lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d3a52b6

Please sign in to comment.