BetterGifAltText: Fix displaying undefined
This commit is contained in:
parent
bc09225258
commit
b3311c6f12
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue