refactor
This commit is contained in:
parent
7800a12e52
commit
363d727c55
@ -35,7 +35,7 @@ const url = computed(() => {
|
|||||||
const found = customEmojis.find(x => x.name === customEmojiName);
|
const found = customEmojis.find(x => x.name === customEmojiName);
|
||||||
return found ? found.url : null;
|
return found ? found.url : null;
|
||||||
} else {
|
} else {
|
||||||
const rawUrl = props.host ? `/emoji/${customEmojiName}@${props.host}.webp` : `/emoji/${customEmojiName}.webp`;
|
const rawUrl = `/emoji/${customEmojiName}@${props.host}.webp`;
|
||||||
return defaultStore.state.disableShowingAnimatedImages
|
return defaultStore.state.disableShowingAnimatedImages
|
||||||
? getStaticImageUrl(rawUrl)
|
? getStaticImageUrl(rawUrl)
|
||||||
: rawUrl;
|
: rawUrl;
|
||||||
|
Loading…
Reference in New Issue
Block a user