stylecheck

This commit is contained in:
Araxeus
2021-04-09 01:08:22 +03:00
parent 30675e0567
commit d8dc4656e4
3 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,3 @@
const is = require("electron-is");
const { notificationImage, icons } = require("./utils"); const { notificationImage, icons } = require("./utils");
const getSongControls = require('../../providers/song-controls'); const getSongControls = require('../../providers/song-controls');
const notifier = require("node-notifier"); const notifier = require("node-notifier");
@ -57,7 +56,6 @@ module.exports.notifyInteractive = function sendToaster(songInfo) {
notifier.notify( notifier.notify(
toDelete, toDelete,
(err, data) => { (err, data) => {
console.log("clicked "+data);
// Will also wait until notification is closed. // Will also wait until notification is closed.
if (err) { if (err) {
console.log(`ERROR = ${err}\n DATA = ${data}`); console.log(`ERROR = ${err}\n DATA = ${data}`);

View File

@ -1,4 +1,4 @@
const {urgencyLevels, setUrgency, setUnpause, setInteractive} = require("./utils"); const { urgencyLevels, setUrgency, setUnpause, setInteractive } = require("./utils");
const is = require("electron-is"); const is = require("electron-is");
module.exports = (win, options) => [ module.exports = (win, options) => [

View File

@ -24,9 +24,9 @@ module.exports.setInteractive = (options, value) => {
setOption(options); setOption(options);
} }
module.exports.notificationImage = function (songInfo, url = false) { module.exports.notificationImage = function (songInfo, saveIcon = false) {
//return local url //return local path to temp icon
if (!!songInfo && url) { if (saveIcon && !!songInfo.image) {
try { try {
fs.writeFileSync(tempIcon, fs.writeFileSync(tempIcon,
songInfo.image songInfo.image