Skip to content

Commit 0d56a99

Browse files
committed
fix($plugin-pwa): service worker doesn't work under sub directory (close: #1311)
1 parent 898033c commit 0d56a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vuepress/plugin-pwa/lib/enhanceAppFile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default ({ router, isServer }) => {
1616
&& !isServer
1717
&& SW_ENABLED) {
1818
register(`${SW_BASE_URL}service-worker.js`, {
19-
registrationOptions: { scope: `./${SW_BASE_URL}` },
19+
registrationOptions: {},
2020
ready () {
2121
console.log('[vuepress:sw] Service worker is active.')
2222
event.$emit('sw-ready')

0 commit comments

Comments
 (0)