Quellcode durchsuchen

added toString methods

Gildas vor 7 Jahren
Ursprung
Commit
0410d4ba08
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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]"; };
 		}
 	}