diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 47880b8..798e783 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -184,7 +184,7 @@ // IntersectionObserver isn't supported in pre-quantum // firefox versions, but the alternative of making it // manually is a performance drain, so oh well - var observer = new IntersectionObserver(lazyLoad, { + let observer = new IntersectionObserver(lazyLoad, { // where in relation to the edge of the viewport, we are observing rootMargin: "100px", @@ -205,7 +205,7 @@ }; // Tell our observer to observe all img elements with a "lazy" class - var lazyImages = document.querySelectorAll('img.lazy'); + let lazyImages = document.querySelectorAll('img.lazy'); lazyImages.forEach(img => { observer.observe(img); }); @@ -220,7 +220,7 @@ {% if settings.related_videos_mode != 0 or playlist %}