mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 13:03:42 +01:00
sandbox - further reduce electron dependencies
This commit is contained in:
@@ -42,7 +42,7 @@ export class SharedProcess implements ISharedProcess {
|
||||
show: false,
|
||||
backgroundColor: this.themeMainService.getBackgroundColor(),
|
||||
webPreferences: {
|
||||
preload: URI.parse(require.toUrl('vs/code/electron-browser/preload.js')).fsPath,
|
||||
preload: URI.parse(require.toUrl('vs/base/parts/sandbox/electron-browser/preload.js')).fsPath,
|
||||
images: false,
|
||||
nodeIntegration: true,
|
||||
webgl: false,
|
||||
|
||||
@@ -779,7 +779,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
|
||||
}
|
||||
|
||||
private doGetPreloadUrl(): string {
|
||||
return require.toUrl('vs/code/electron-browser/preload.js');
|
||||
return require.toUrl('vs/base/parts/sandbox/electron-browser/preload.js');
|
||||
}
|
||||
|
||||
serializeWindowState(): IWindowState {
|
||||
|
||||
Reference in New Issue
Block a user