Skip to content

Commit

Permalink
fix: Check variable before value
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Nov 4, 2022
1 parent e66df86 commit 7356810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fibr/static/scripts/async-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ document.addEventListener(
);

window.addEventListener('thumbnail-done', () => {
if (!lazyLoad) {
if (typeof lazyLoad === 'undefined' || !lazyLoad) {
return;
}

Expand Down

0 comments on commit 7356810

Please sign in to comment.