mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 16:35:56 +02:00
Fix bug
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
<script>
|
||||
this.image = this.opts.image;
|
||||
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)`
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user