mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-15 12:21:47 +00:00
fix potential empty notification showing
This commit is contained in:
@ -28,6 +28,7 @@ module.exports = (win) => {
|
|||||||
|
|
||||||
// Register songInfoCallback
|
// Register songInfoCallback
|
||||||
registerCallback(songInfo => {
|
registerCallback(songInfo => {
|
||||||
|
if (!songInfo.artist && !songInfo.title) return;
|
||||||
savedSongInfo = { ...songInfo };
|
savedSongInfo = { ...songInfo };
|
||||||
if (!songInfo.isPaused &&
|
if (!songInfo.isPaused &&
|
||||||
(songInfo.url !== lastUrl || config.get("unpauseNotification"))
|
(songInfo.url !== lastUrl || config.get("unpauseNotification"))
|
||||||
|
|||||||
Reference in New Issue
Block a user