oops
This commit is contained in:
parent
d939914ea7
commit
d11c5e0989
1 changed files with 4 additions and 0 deletions
|
@ -59,6 +59,8 @@ export default class playbackNotifications {
|
|||
</toast>`
|
||||
});
|
||||
|
||||
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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue