nit: prettier

This commit is contained in:
TC
2021-01-12 21:16:29 +01:00
parent 77e24f41a5
commit f1ddb92886
2 changed files with 22 additions and 20 deletions

View File

@ -1,18 +1,18 @@
const {Notification} = require('electron');
const { Notification } = require("electron");
const notify = info => {
let notificationImage = 'assets/youtube-music.png';
if (info.image) {
notificationImage = info.image.resize({height: 256, width: 256});
notificationImage = info.image.resize({ height: 256, width: 256 });
}
// Fill the notification with content
const notification = {
title: info.title || 'Playing',
title: info.title || "Playing",
body: info.artist,
icon: notificationImage,
silent: true
silent: true,
};
// Send the notification
new Notification(notification).show();