Browse Source

test: fix contextIsolation value for later added test (#27998)

Cheng Zhao 4 years ago
parent
commit
0b042d3b1c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      spec-main/fixtures/apps/quit/main.js

+ 7 - 1
spec-main/fixtures/apps/quit/main.js

@@ -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();
   });