File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/platform/protocol/electron-main Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { validatedIpcMain } from 'vs/base/parts/ipc/electron-main/ipcMain';
8
8
import { Disposable , IDisposable , toDisposable } from 'vs/base/common/lifecycle' ;
9
9
import { TernarySearchTree } from 'vs/base/common/map' ;
10
10
import { COI , FileAccess , Schemas } from 'vs/base/common/network' ;
11
- import { extname , normalize } from 'vs/base/common/path' ;
11
+ import { basename , extname , normalize } from 'vs/base/common/path' ;
12
12
import { isLinux } from 'vs/base/common/platform' ;
13
13
import { URI } from 'vs/base/common/uri' ;
14
14
import { generateUuid } from 'vs/base/common/uuid' ;
@@ -96,7 +96,7 @@ export class ProtocolMainService extends Disposable implements IProtocolMainServ
96
96
97
97
let headers : Record < string , string > | undefined ;
98
98
if ( this . environmentService . crossOriginIsolated ) {
99
- if ( path . endsWith ( '/ workbench.html') || path . endsWith ( '/ workbench-dev.html') ) {
99
+ if ( basename ( path ) === ' workbench.html' || basename ( path ) === ' workbench-dev.html') {
100
100
headers = COI . CoopAndCoep ;
101
101
} else {
102
102
headers = COI . getHeadersFromQuery ( request . url ) ;
You can’t perform that action at this time.
0 commit comments