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

@ -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