mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: fix contextIsolation value for later added test (#27998)
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
const { app, BrowserWindow } = require('electron');
|
||||
|
||||
app.once('ready', () => {
|
||||
const w = new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true } });
|
||||
const w = new BrowserWindow({
|
||||
show: false,
|
||||
webPreferences: {
|
||||
contextIsolation: false,
|
||||
nodeIntegration: true
|
||||
}
|
||||
});
|
||||
w.webContents.once('crashed', () => {
|
||||
app.quit();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user