From 87cbdc3dc3c1b91b0a1e2c46c6b94871fb3651fd Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Fri, 17 Feb 2023 18:05:16 +0200 Subject: [PATCH] fix potential empty notification showing --- plugins/notifications/interactive.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/notifications/interactive.js b/plugins/notifications/interactive.js index 17a480f9..7bda6944 100644 --- a/plugins/notifications/interactive.js +++ b/plugins/notifications/interactive.js @@ -28,6 +28,7 @@ module.exports = (win) => { // Register songInfoCallback registerCallback(songInfo => { + if (!songInfo.artist && !songInfo.title) return; savedSongInfo = { ...songInfo }; if (!songInfo.isPaused && (songInfo.url !== lastUrl || config.get("unpauseNotification"))