From d11c5e09899f555b4a28df8115143fd814190f67 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Thu, 4 Aug 2022 00:49:39 +0100 Subject: [PATCH] oops --- src/main/plugins/playbackNotifications.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/plugins/playbackNotifications.ts b/src/main/plugins/playbackNotifications.ts index 9f849f02..9b35bf0e 100644 --- a/src/main/plugins/playbackNotifications.ts +++ b/src/main/plugins/playbackNotifications.ts @@ -59,6 +59,8 @@ export default class playbackNotifications { ` }); + console.log(this._notification.toastXml); + this._notification.on('click', (_: any) => { this._utils.getWindow().show() this._utils.getWindow().focus() @@ -102,9 +104,11 @@ export default class playbackNotifications { if (process.platform === "win32") { fetch(a.artwork.url) .then(res => { + console.log(join(app.getPath("temp"), `${a.songId}-${a.artwork.url.split('/').pop()}`)); const dest = createWriteStream(join(app.getPath("temp"), `${a.songId}-${a.artwork.url.split('/').pop()}`)); // @ts-ignore res.body.pipe(dest) + this.createNotification(a); }) } else { fetch(a.artwork.url).then(async blob => {