mirror of
https://github.com/purocean/yn.git
synced 2026-10-13 07:38:54 +08:00
去掉 Electron 默认窗口菜单
This commit is contained in:
@@ -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
|
||||
// 系统托盘
|
||||
|
||||
Reference in New Issue
Block a user