Skip to content

Commit 99a35c5

Browse files
committed
fix(webServerClient): use relative static path for icons
1 parent 44e925c commit 99a35c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/server/webClientServer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export class WebClientServer {
100100

101101
if (['favicon.ico', 'code-192.png', 'code-512.png'].includes(parsedPath.base)) {
102102
// always serve icons/manifest, even without a token
103+
const path = join(APP_ROOT, 'resources', 'app', 'icons', parsedPath.base);
103104
return serveFile(this._logService, req, res, join(APP_ROOT, 'resources', 'server', parsedPath.base));
104105
}
105106

@@ -210,7 +211,7 @@ export class WebClientServer {
210211
'background-color': clientTheme.backgroundColor,
211212
description: 'Run editors on a remote server.',
212213
icons: this._iconSizes.map((size => ({
213-
src: this.createRequestUrl(req, parsedUrl, `/static/resources/server/code-${size}.png`).toString(),
214+
src: `./static/resources/server/code-${size}.png`,
214215
type: 'image/png',
215216
sizes: `${size}x${size}`,
216217
})))

0 commit comments

Comments
 (0)