Better key name

This commit is contained in:
syuilo
2019-02-05 04:09:44 +09:00
parent ef618b2431
commit dd39d6ea37
7 changed files with 13 additions and 13 deletions

View File

@ -49,7 +49,7 @@ export default Vue.extend({
};
},
url(): string {
return this.$store.state.device.doNotAutoplayAnimation
return this.$store.state.device.disableShowingAnimatedImages
? getStaticImageUrl(this.user.avatarUrl)
: this.user.avatarUrl;
},

View File

@ -55,7 +55,7 @@ export default Vue.extend({
const customEmoji = this.customEmojis.find(x => x.name == this.name);
if (customEmoji) {
this.customEmoji = customEmoji;
this.url = this.$store.state.device.doNotAutoplayAnimation
this.url = this.$store.state.device.disableShowingAnimatedImages
? getStaticImageUrl(customEmoji.url)
: customEmoji.url;
} else {

View File

@ -38,7 +38,7 @@ export default Vue.extend({
computed: {
style(): any {
let url = `url(${
this.$store.state.device.doNotAutoplayAnimation
this.$store.state.device.disableShowingAnimatedImages
? getStaticImageUrl(this.image.thumbnailUrl)
: this.image.thumbnailUrl
})`;