Skip to content

Commit 7efc6a5

Browse files
committed
Enable contextisolation web preferences
1 parent b1307db commit 7efc6a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

window.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ const winOption = {
1313

1414
function createWindow (opts = {}) {
1515
const win = new BrowserWindow(
16-
Object.assign({}, winOption, {titleBarStyle: 'hidden'})
16+
Object.assign({}, winOption, {
17+
titleBarStyle: 'hidden',
18+
webPreferences: {
19+
contextisolation: true
20+
}
21+
})
1722
)
1823

1924
if (opts.hasOwnProperty('url')) {

0 commit comments

Comments
 (0)