去掉 Electron 默认窗口菜单

This commit is contained in:
purocean
2019-08-09 09:57:14 +08:00
parent 988f5bd6ec
commit d36dba62d8
+3
View File
@@ -11,6 +11,9 @@ const backendPort = 3044
const devFrontendPort = 8066
const getUrl = () => `http://localhost:${isDev ? devFrontendPort : backendPort}`
// 去掉每个窗口默认的菜单
Menu.setApplicationMenu(null)
// 主窗口
let win: BrowserWindow | null = null
// 系统托盘