mirror of
https://github.com/coder/code-server.git
synced 2024-12-26 03:05:00 +03:00
Fix "serviceWorker.js" path
This commit is contained in:
parent
0f451524f9
commit
d71649acb4
@ -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 + "/",
|
||||
|
Loading…
Reference in New Issue
Block a user