Skip to content

Commit abda9cf

Browse files
Add files via upload
1 parent 99b9ae4 commit abda9cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
iframe.src = src;
3333
}
3434

35-
function handleIntersection(entries, observer) {
35+
function handleIntersection(entries) {
3636
entries.forEach((entry) => {
3737
if (entry.isIntersecting) {
3838
loadVideo(entry.target);
@@ -44,6 +44,7 @@
4444
const videoSections = document.querySelectorAll('section');
4545

4646
const options = {
47+
root: null,
4748
rootMargin: '0px',
4849
threshold: 0.1
4950
};

0 commit comments

Comments
 (0)