分离主进程与渲染进程的功能,禁用remote模块
This commit is contained in:
@@ -50,6 +50,7 @@ function createWindow() {
|
||||
width: windowSizeInfo.width,
|
||||
frame: false,
|
||||
transparent: !isLinux,
|
||||
enableRemoteModule: false,
|
||||
// icon: path.join(global.__static, isWin ? 'icons/256x256.ico' : 'icons/512x512.png'),
|
||||
resizable: false,
|
||||
maximizable: false,
|
||||
|
||||
Reference in New Issue
Block a user