File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
<!-- Workbench Icon/Manifest/CSS -->
21
21
< link rel ="icon " href ="./favicon.ico " type ="image/x-icon " />
22
- < link rel ="manifest " href ="./manifest.json ">
22
+ < link rel ="manifest " href ="./manifest.json " crossorigin =" use-credentials " >
23
23
< meta name ="theme-color " content ="{{CLIENT_BACKGROUND_COLOR}} ">
24
24
25
25
<!-- Workbench Configuration -->
Original file line number Diff line number Diff line change 15
15
16
16
<!-- Workbench Icon/Manifest/CSS -->
17
17
< link rel ="icon " href ="./favicon.ico " type ="image/x-icon " />
18
- < link rel ="manifest " href ="./manifest.json ">
18
+ < link rel ="manifest " href ="./manifest.json " crossorigin =" use-credentials " >
19
19
< meta name ="theme-color " content ="{{CLIENT_BACKGROUND_COLOR}} ">
20
20
< link data-name ="vs/workbench/workbench.web.api " rel ="stylesheet " href ="./static/out/vs/workbench/workbench.web.api.css ">
21
21
Original file line number Diff line number Diff line change @@ -211,11 +211,15 @@ export class IncomingHTTPRequestService extends AbstractIncomingRequestService<W
211
211
private $webManifest : WebRequestListener = async ( req , res ) => {
212
212
const { productConfiguration } = await this . environmentService . createWorkbenchWebConfiguration ( req ) ;
213
213
const clientTheme = await this . fetchClientTheme ( ) ;
214
+ const startUrl = req . pathPrefix . substring (
215
+ 0 ,
216
+ req . pathPrefix . lastIndexOf ( '/' ) + 1
217
+ ) ;
214
218
215
219
const webManifest : WebManifest = {
216
220
name : productConfiguration . nameLong ! ,
217
221
short_name : productConfiguration . nameShort ! ,
218
- start_url : req . pathPrefix ,
222
+ start_url : normalize ( startUrl ) ,
219
223
display : 'fullscreen' ,
220
224
'background-color' : clientTheme . backgroundColor ,
221
225
description : 'Run editors on a remote server.' ,
You can’t perform that action at this time.
0 commit comments