From d26a10a650287ddb2a3148e25f659f980fe8c1bf Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 19 Nov 2017 13:51:23 +0100 Subject: [PATCH] Fixed unreliable image load --- scripts/AnimeNotifier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/AnimeNotifier.ts b/scripts/AnimeNotifier.ts index 124ee629..667a6156 100644 --- a/scripts/AnimeNotifier.ts +++ b/scripts/AnimeNotifier.ts @@ -57,7 +57,7 @@ export class AnimeNotifier { this.visibilityObserver = new IntersectionObserver( entries => { for(let entry of entries) { - if(entry.intersectionRatio > 0) { + if(entry.isIntersecting) { entry.target["became visible"]() this.visibilityObserver.unobserve(entry.target) }