Archived
1
0

Merge pull request #3829 from cuining/main

Fix "serviceWorker.js" path
This commit is contained in:
Joe Previte
2021-07-26 10:25:47 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ export async function registerServiceWorker(): Promise<void> {
const options = getOptions()
logger.level = options.logLevel
const path = normalize(`${options.csStaticBase}/dist/serviceWorker.js`)
const path = normalize(`${options.csStaticBase}/out/browser/serviceWorker.js`)
try {
await navigator.serviceWorker.register(path, {
scope: options.base + "/",