userinfo fallback and added apples rating love icon to files for later use

This commit is contained in:
Core 2021-12-09 18:57:19 +00:00
parent d6fd99a9b0
commit 869eedbef9
2 changed files with 4 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -171,6 +171,10 @@ const app = new Vue({
this.mk.privateEnabled = true
// Set profile name
this.chrome.userinfo = await this.mkapi("personalSocialProfile", false, "")
// API Fallback
if (!this.chrome.userinfo) {
this.chrome.userinfo = {"attributes": {"name": "Cider User", "handle": "CiderUser", "artwork": {"url": "../icons/icon.png"}}}
}
// load cached library
if (localStorage.getItem("librarySongs") != null) {