From a96ab5f3b0984fdf6cd1c596d7615a4490bfef4f Mon Sep 17 00:00:00 2001 From: Kirakeru Date: Thu, 3 Dec 2020 06:22:12 +0800 Subject: [PATCH] Fix White Window Bug #298 (#302) --- mods/core/createWindow.js | 1 + mods/core/tray.js | 1 + 2 files changed, 2 insertions(+) diff --git a/mods/core/createWindow.js b/mods/core/createWindow.js index 47165d0..1b14aa6 100644 --- a/mods/core/createWindow.js +++ b/mods/core/createWindow.js @@ -49,6 +49,7 @@ module.exports = (store, __exports) => { preload: path.resolve(`${helpers.__notion}/app/renderer/index.js`), webviewTag: true, session: electron.session.fromPartition('persist:notion'), + enableRemoteModule: true, }, ...rect, }); diff --git a/mods/core/tray.js b/mods/core/tray.js index c86c9d4..c65c6a7 100644 --- a/mods/core/tray.js +++ b/mods/core/tray.js @@ -139,6 +139,7 @@ module.exports = (store, __exports) => { preload: path.resolve(`${__dirname}/enhancerMenu.js`), nodeIntegration: true, session: electron.session.fromPartition('persist:notion'), + enableRemoteModule: true, }, }); enhancer_menu.loadURL('enhancement://core/menu.html');