Skip to content

Commit bfb4ebd

Browse files
committed
fixup!: update hash in webview patch
1 parent 2869031 commit bfb4ebd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

patches/webview.diff

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ webview host is separate by default but we serve on the same host).
2020

2121
To test, open a few types of webviews (images, markdown, extension details, etc).
2222

23+
Make sure to update the hash. To do so:
24+
1. run code-server
25+
2. open any webview (i.e. preview Markdown)
26+
3. see error in console and copy hash
27+
2328
Index: code-server/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts
2429
===================================================================
2530
--- code-server.orig/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts
@@ -88,7 +93,7 @@ Index: code-server/lib/vscode/src/vs/workbench/services/extensions/worker/webWor
8893
default-src 'none';
8994
child-src 'self' data: blob:;
9095
- script-src 'self' 'unsafe-eval' 'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' https:;
91-
+ script-src 'self' 'unsafe-eval' 'sha256-TkIM/TmudlFEe0ZRp0ptvN54LClwk30Rql4ZPE0hm/I=' https:;
96+
+ script-src 'self' 'unsafe-eval' 'sha256-wwaDxsm1+SKIUb5YJXiZlYMyV7QPB8+zd6HPcTjigZs=' https:;
9297
connect-src 'self' https: wss: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*;"/>
9398
</head>
9499
<body>

0 commit comments

Comments
 (0)