BetterGifAltText: Fix displaying undefined

This commit is contained in:
Vendicated 2023-10-28 02:19:43 +02:00
parent bc09225258
commit b3311c6f12
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -45,7 +45,8 @@ export default definePlugin({
],
altify(props: any) {
if (props.alt && props.alt !== "GIF") return props.alt;
props.alt ??= "GIF";
if (props.alt !== "GIF") return props.alt;
let url: string = props.original || props.src;
try {