This commit is contained in:
vapormusic 2022-02-12 08:19:58 +07:00
parent 064b287553
commit 1e2978199e
2 changed files with 22 additions and 3 deletions

View file

@ -3109,6 +3109,7 @@ const app = new Vue({
data = data.data.data[0];
if (data != null && data !== "" && data.attributes != null && data.attributes.artwork != null) {
this.currentArtUrl = (data["attributes"]["artwork"]["url"] ?? '').replace('{w}', 50).replace('{h}', 50);
ipcRenderer.send('updateRPCImage', this.currentArtUrl ?? '');
try {
document.querySelector('.app-playback-controls .artwork').style.setProperty('--artwork', `url("${this.currentArtUrl}")`);
} catch (e) {