Changed function style in notifications

This commit is contained in:
semvis123
2020-12-21 22:11:23 +01:00
parent 5bffdbd628
commit 588e0019d6

View File

@ -1,6 +1,6 @@
const {Notification} = require('electron');
function notify(info) {
const notify = info => {
let notificationImage = 'assets/youtube-music.png';
if (info.image) {
@ -16,7 +16,7 @@ function notify(info) {
};
// Send the notification
new Notification(notification).show();
}
};
module.exports = win => {
win.on('ready-to-show', () => {