From 5e0ea5625ed3c21b6e244eb033ce2fc08807eaed Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Mon, 9 Nov 2020 17:03:49 +0100 Subject: [PATCH] fix: add context isolation false, close #324 --- app/main.dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.dev.ts b/app/main.dev.ts index db6ea18..8b63d3f 100644 --- a/app/main.dev.ts +++ b/app/main.dev.ts @@ -88,7 +88,7 @@ const createWindow = async () => { } : { nodeIntegration: false, - contextIsolation: false, + contextIsolation: true, webSecurity: true, preload: path.join(__dirname, 'dist/renderer.prod.js'), },