mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
Changed function style in notifications
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
const {Notification} = require('electron');
|
const {Notification} = require('electron');
|
||||||
|
|
||||||
function notify(info) {
|
const notify = info => {
|
||||||
let notificationImage = 'assets/youtube-music.png';
|
let notificationImage = 'assets/youtube-music.png';
|
||||||
|
|
||||||
if (info.image) {
|
if (info.image) {
|
||||||
@ -16,7 +16,7 @@ function notify(info) {
|
|||||||
};
|
};
|
||||||
// Send the notification
|
// Send the notification
|
||||||
new Notification(notification).show();
|
new Notification(notification).show();
|
||||||
}
|
};
|
||||||
|
|
||||||
module.exports = win => {
|
module.exports = win => {
|
||||||
win.on('ready-to-show', () => {
|
win.on('ready-to-show', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user