Explorar o código

fix repetitive log issues

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
ab8948ab99
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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];