From 45557ef41d0d0418753aae890e179e937d40d12f Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 18 Oct 2024 11:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/main.js b/main.js index a42b159..0d64de2 100644 --- a/main.js +++ b/main.js @@ -75,13 +75,7 @@ function createTray() { }, { label: '退出', click: async () => { - const url = mainWindow.webContents.getURL(); - const hash = new URL(url).hash; - if (hash.indexOf('/meeting') === -1) { - quit() - } else { - await mainWindow.webContents.send('quitAndInstall'); - } + quit() }, // icon: iconPath, },