mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
lint
This commit is contained in:
@ -77,7 +77,7 @@ module.exports = (win, options) => {
|
||||
|
||||
let dirWatcher = chokidar.watch(playlistFolder);
|
||||
dirWatcher.on('add', () => {
|
||||
downloadCount += 1;
|
||||
downloadCount++;
|
||||
if (downloadCount >= playlist.items.length) {
|
||||
win.setProgressBar(-1); // close progress bar
|
||||
setBadge(0); // close badge counter
|
||||
|
||||
@ -39,8 +39,8 @@ module.exports.presets = {
|
||||
},
|
||||
};
|
||||
|
||||
module.exports.setBadge = num => {
|
||||
module.exports.setBadge = n => {
|
||||
if (is.linux() || is.macOS()) {
|
||||
electron.app.badgeCount = num;
|
||||
electron.app.setBadgeCount(n);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user