From 0b697b65470db9d43071e6779352394d34837939 Mon Sep 17 00:00:00 2001 From: yazninja <71800112+yazninja@users.noreply.github.com> Date: Wed, 23 Mar 2022 23:50:39 +0800 Subject: [PATCH] Hide Exposed Profile Info if Toggled --- src/renderer/main/vueapp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index dcfad624..e3dadcb9 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -605,7 +605,7 @@ const app = new Vue({ // Set profile name this.chrome.userinfo = (await app.mk.api.v3.music(`/v1/me/social-profile`)).data.data[0] // check if this.chrome.userinfo.attributes.artwork exists - if (this.chrome.userinfo.attributes.artwork) { + if (this.chrome.userinfo.attributes.artwork && !this.chrome.hideUserInfo) { document.documentElement.style .setProperty('--cvar-userprofileimg', `url("${this.getMediaItemArtwork(this.chrome.userinfo.attributes.artwork.url)}")`); }