fix: notification close

This commit is contained in:
JellyBrick
2024-01-16 21:14:37 +09:00
parent de6506e6b4
commit 922d78dcee

View File

@ -29,6 +29,8 @@ export default (
const sendNotification = (songInfo: SongInfo) => {
const iconSrc = notificationImage(songInfo, config());
savedNotification?.close();
let icon: string;
if (typeof iconSrc === 'object') {
icon = iconSrc.toDataURL();