Bladeren bron

fix repetitive log issues

Gildas 7 jaren geleden
bovenliggende
commit
ab8948ab99
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      lib/hooks/hooks-frame.js

+ 1 - 1
lib/hooks/hooks-frame.js

@@ -285,7 +285,7 @@ this.hooksFrame = this.hooksFrame || (() => {
 			window.IntersectionObserver = function () {
 				if (!warningIntersectionObserverDisplayed) {
 					console.warn("SingleFile is hooking the IntersectionObserver API to detect and load deferred images."); // eslint-disable-line no-console
-					warningRequestAnimationFrameDisplayed = true;
+					warningIntersectionObserverDisplayed = true;
 				}
 				const intersectionObserver = new IntersectionObserver(...arguments);
 				const callback = arguments[0];