BetterGifAltText: Fix displaying undefined
This commit is contained in:
parent
bc09225258
commit
b3311c6f12
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user