We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21efa1e commit 861aa5dCopy full SHA for 861aa5d
1 file changed
patches/webview.diff
@@ -75,6 +75,15 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index
75
76
<!-- Disable pinch zooming -->
77
<meta name="viewport"
78
+@@ -253,7 +253,7 @@
79
+ }
80
+
81
+ const swPath = encodeURI(`service-worker.js?v=${expectedWorkerVersion}&vscode-resource-base-authority=${searchParams.get('vscode-resource-base-authority')}&remoteAuthority=${searchParams.get('remoteAuthority') ?? ''}`);
82
+- navigator.serviceWorker.register(swPath, { type: 'module', updateViaCache: 'none' })
83
++ navigator.serviceWorker.register(swPath)
84
+ .then(async registration => {
85
+ if (navigator.serviceWorker.controller) {
86
+ // A previous SW is already controlling. Force an update
87
@@ -332,6 +332,12 @@
88
89
const hostname = location.hostname;
0 commit comments