Browse Source

fix repetitive log issues

Gildas 7 năm trước cách đây
mục cha
commit
ab8948ab99
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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];