mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 18:21:47 +00:00
stylecheck
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
const is = require("electron-is");
|
||||
const { notificationImage, icons } = require("./utils");
|
||||
const getSongControls = require('../../providers/song-controls');
|
||||
const notifier = require("node-notifier");
|
||||
@ -57,7 +56,6 @@ module.exports.notifyInteractive = function sendToaster(songInfo) {
|
||||
notifier.notify(
|
||||
toDelete,
|
||||
(err, data) => {
|
||||
console.log("clicked "+data);
|
||||
// Will also wait until notification is closed.
|
||||
if (err) {
|
||||
console.log(`ERROR = ${err}\n DATA = ${data}`);
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
const {urgencyLevels, setUrgency, setUnpause, setInteractive} = require("./utils");
|
||||
const { urgencyLevels, setUrgency, setUnpause, setInteractive } = require("./utils");
|
||||
const is = require("electron-is");
|
||||
|
||||
module.exports = (win, options) => [
|
||||
|
||||
@ -24,9 +24,9 @@ module.exports.setInteractive = (options, value) => {
|
||||
setOption(options);
|
||||
}
|
||||
|
||||
module.exports.notificationImage = function (songInfo, url = false) {
|
||||
//return local url
|
||||
if (!!songInfo && url) {
|
||||
module.exports.notificationImage = function (songInfo, saveIcon = false) {
|
||||
//return local path to temp icon
|
||||
if (saveIcon && !!songInfo.image) {
|
||||
try {
|
||||
fs.writeFileSync(tempIcon,
|
||||
songInfo.image
|
||||
|
||||
Reference in New Issue
Block a user