We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1307db commit 7efc6a5Copy full SHA for 7efc6a5
1 file changed
window.js
@@ -13,7 +13,12 @@ const winOption = {
13
14
function createWindow (opts = {}) {
15
const win = new BrowserWindow(
16
- Object.assign({}, winOption, {titleBarStyle: 'hidden'})
+ Object.assign({}, winOption, {
17
+ titleBarStyle: 'hidden',
18
+ webPreferences: {
19
+ contextisolation: true
20
+ }
21
+ })
22
)
23
24
if (opts.hasOwnProperty('url')) {
0 commit comments