Skip to content

Commit

Permalink
check nil
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed Sep 17, 2023
1 parent 628a0de commit d407250
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resources/filters/layout/lightbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ function lightbox()
return imgEl
end
})
div.attributes["lightbox"] = nil
if div then
div.attributes["lightbox"] = nil
end
end
return div
end,
Expand Down

0 comments on commit d407250

Please sign in to comment.