Skip to content

Commit d3a52b6

Browse files
author
pooya parsa
committed
fix(workbox): always prepend routerBase to swURL
fixes #157
1 parent 45fc182 commit d3a52b6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/workbox/lib/options.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ function getOptions (moduleOptions) {
3131
}
3232

3333
// swURL
34-
if (!options.swURL) {
35-
options.swURL = joinUrl(options.routerBase, 'sw.js')
36-
}
34+
options.swURL = joinUrl(options.routerBase, options.swURL || 'sw.js')
3735

3836
// swScope
3937
if (!options.swScope) {

0 commit comments

Comments
 (0)