mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
stylecheck
This commit is contained in:
@ -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}`);
|
||||||
|
|||||||
@ -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) => [
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user