mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-24 10:36:43 -06:00
parent
d002f67140
commit
1d7933349b
1 changed files with 5 additions and 2 deletions
|
@ -36,7 +36,6 @@
|
|||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import anime from 'animejs';
|
||||
import i18n from '../../../i18n';
|
||||
import {
|
||||
faFile,
|
||||
faFileAlt,
|
||||
|
@ -104,7 +103,11 @@ export default Vue.extend({
|
|||
return 'unknown';
|
||||
},
|
||||
isThumbnailAvailable(): boolean {
|
||||
return this.file.thumbnailUrl.endsWith('?thumbnail') ? (this.is === 'image' || this.is === 'video') : true;
|
||||
return this.file.thumbnailUrl
|
||||
? this.file.thumbnailUrl.endsWith('?thumbnail')
|
||||
? (this.is === 'image' || this.is === 'video')
|
||||
: true
|
||||
: false;
|
||||
},
|
||||
background(): string {
|
||||
return this.file.properties.avgColor && this.file.properties.avgColor.length == 3
|
||||
|
|
Loading…
Reference in a new issue