From 05b416330fde2aa6db20526d902bdd21d6ab30af Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 13 Aug 2024 14:29:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.js b/main.js index 9c93c8d..86e70c0 100644 --- a/main.js +++ b/main.js @@ -8,7 +8,6 @@ const { ipcMain, clipboard, dialog, - Notification, desktopCapturer, } = require('electron'); const path = require('node:path') @@ -109,11 +108,6 @@ function createWindow() { } function createNotification(user) { - const notification = new Notification({ - title: `${user.name} 邀请你加入`, - body: user.body, - // icon: path.join(`${__dirname}/src/assets/avatar.png`) - }); notification.show(); mainWindow.focus(); }