From c83053b228dea592401549be5b96068d6f6f4518 Mon Sep 17 00:00:00 2001 From: Toby Date: Sat, 24 Dec 2022 14:49:11 -0800 Subject: [PATCH] change scope to subpath root instead of domain root so service worker will work on subpath --- patches/service-worker.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/service-worker.diff b/patches/service-worker.diff index 314142676576..8f73a638af62 100644 --- a/patches/service-worker.diff +++ b/patches/service-worker.diff @@ -59,7 +59,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts logoutEndpoint: this._environmentService.args['auth'] && this._environmentService.args['auth'] !== "none" ? base + '/logout' : undefined, proxyEndpointTemplate: process.env.VSCODE_PROXY_URI ?? base + '/proxy/{{port}}/', + serviceWorker: { -+ scope: vscodeBase + '/', ++ scope: '/', + path: base + '/_static/out/browser/serviceWorker.js', + }, embedderIdentifier: 'server-distro',