We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e925757 commit 46cfcc9Copy full SHA for 46cfcc9
1 file changed
electron/main.js
@@ -1,4 +1,4 @@
1
-const { app, BrowserWindow } = require('electron');
+const { app, BrowserWindow, Menu } = require('electron');
2
const path = require('path');
3
const net = require('net');
4
@@ -103,6 +103,9 @@ function createWindow() {
103
}
104
});
105
106
+ // 隐藏菜单栏
107
+ Menu.setApplicationMenu(null);
108
+
109
// 检查端口是否被占用
110
isPortInUse(PORT).then(async (inUse) => {
111
if (!inUse) {
0 commit comments