fix square without artwork from not showing
This commit is contained in:
parent
222aa19d4c
commit
7516499dda
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getBgColor() {
|
getBgColor() {
|
||||||
let color = `#${(this.item.attributes.artwork.bgColor != null) ? (this.item.attributes.artwork.bgColor) : `333333`}`
|
let color = `#${(this.item.attributes.artwork != null && this.item.attributes.artwork.bgColor != null) ? (this.item.attributes.artwork.bgColor) : `333333`}`
|
||||||
let c = color.substring(1); // strip #
|
let c = color.substring(1); // strip #
|
||||||
var rgb = parseInt(c, 16); // convert rrggbb to decimal
|
var rgb = parseInt(c, 16); // convert rrggbb to decimal
|
||||||
var r = (rgb >> 16) & 0xff; // extract red
|
var r = (rgb >> 16) & 0xff; // extract red
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue