BetterGifAltText: Fix displaying undefined
This commit is contained in:
parent
bc09225258
commit
b3311c6f12
|
@ -45,7 +45,8 @@ export default definePlugin({
|
||||||
],
|
],
|
||||||
|
|
||||||
altify(props: any) {
|
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;
|
let url: string = props.original || props.src;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue