Procházet zdrojové kódy

added toString methods

Gildas před 7 roky
rodič
revize
0410d4ba08
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      lib/hooks/hooks-frame.js

+ 2 - 0
lib/hooks/hooks-frame.js

@@ -266,6 +266,7 @@ this.hooksFrame = this.hooksFrame || (() => {
 				}
 				return new FontFace(...arguments);
 			};
+			window.FontFace.toString = function () { return "function FontFace() { [native code]"; };
 		}
 
 		if (window.IntersectionObserver) {
@@ -305,6 +306,7 @@ this.hooksFrame = this.hooksFrame || (() => {
 				observers.set(intersectionObserver, { callback, options });
 				return intersectionObserver;
 			};
+			window.IntersectionObserver.toString = function () { return "function IntersectionObserver() { [native code]"; };
 		}
 	}