Skip to content

Commit

Permalink
Hotfix for #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgeiler committed Sep 28, 2021
1 parent 07aa87b commit 5eceb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InfiniteLoading.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
function isVisible(element) {
return (element.offsetWidth + element.offsetHeight) > 0;
return element && (element.offsetWidth + element.offsetHeight) > 0;
}
</script>

Expand Down

0 comments on commit 5eceb59

Please sign in to comment.