test: fix contextIsolation value for later added test (#27998)
This commit is contained in:
parent
9b93750e5e
commit
0b042d3b1c
1 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue