userinfo fallback and added apples rating love icon to files for later use
This commit is contained in:
parent
d6fd99a9b0
commit
869eedbef9
2 changed files with 4 additions and 0 deletions
BIN
resources/cider-ui-tests/assets/RatingsLove.png
Normal file
BIN
resources/cider-ui-tests/assets/RatingsLove.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue