This commit is contained in:
parent
8288e4e2d1
commit
05b416330f
6
main.js
6
main.js
|
|
@ -8,7 +8,6 @@ const {
|
||||||
ipcMain,
|
ipcMain,
|
||||||
clipboard,
|
clipboard,
|
||||||
dialog,
|
dialog,
|
||||||
Notification,
|
|
||||||
desktopCapturer,
|
desktopCapturer,
|
||||||
} = require('electron');
|
} = require('electron');
|
||||||
const path = require('node:path')
|
const path = require('node:path')
|
||||||
|
|
@ -109,11 +108,6 @@ function createWindow() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createNotification(user) {
|
function createNotification(user) {
|
||||||
const notification = new Notification({
|
|
||||||
title: `${user.name} 邀请你加入`,
|
|
||||||
body: user.body,
|
|
||||||
// icon: path.join(`${__dirname}/src/assets/avatar.png`)
|
|
||||||
});
|
|
||||||
notification.show();
|
notification.show();
|
||||||
mainWindow.focus();
|
mainWindow.focus();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue