mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Changed function style in notifications
This commit is contained in:
@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user