mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
fix: notification close
This commit is contained in:
@ -29,6 +29,8 @@ export default (
|
|||||||
const sendNotification = (songInfo: SongInfo) => {
|
const sendNotification = (songInfo: SongInfo) => {
|
||||||
const iconSrc = notificationImage(songInfo, config());
|
const iconSrc = notificationImage(songInfo, config());
|
||||||
|
|
||||||
|
savedNotification?.close();
|
||||||
|
|
||||||
let icon: string;
|
let icon: string;
|
||||||
if (typeof iconSrc === 'object') {
|
if (typeof iconSrc === 'object') {
|
||||||
icon = iconSrc.toDataURL();
|
icon = iconSrc.toDataURL();
|
||||||
|
|||||||
Reference in New Issue
Block a user