mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
Fix bug
This commit is contained in:
parent
9630ea7490
commit
498af03853
@ -81,7 +81,7 @@
|
|||||||
<script>
|
<script>
|
||||||
this.image = this.opts.image;
|
this.image = this.opts.image;
|
||||||
this.styles = {
|
this.styles = {
|
||||||
'background-color': `rgb(${this.image.properties.average_color.join(',')})`,
|
'background-color': this.image.properties.average_color ? `rgb(${this.image.properties.average_color.join(',')})` : 'transparent',
|
||||||
'background-image': `url(${this.image.url}?thumbnail&size=512)`
|
'background-image': `url(${this.image.url}?thumbnail&size=512)`
|
||||||
};
|
};
|
||||||
console.log(this.styles);
|
console.log(this.styles);
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
<script>
|
<script>
|
||||||
this.image = this.opts.image;
|
this.image = this.opts.image;
|
||||||
this.styles = {
|
this.styles = {
|
||||||
'background-color': `rgb(${this.image.properties.average_color.join(',')})`,
|
'background-color': this.image.properties.average_color ? `rgb(${this.image.properties.average_color.join(',')})` : 'transparent',
|
||||||
'background-image': `url(${this.image.url}?thumbnail&size=512)`
|
'background-image': `url(${this.image.url}?thumbnail&size=512)`
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user