Jelajahi Sumber

added toString methos

Gildas 6 tahun lalu
induk
melakukan
201a6f83de
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      lib/hooks/content/content-hooks-web.js

+ 1 - 0
lib/hooks/content/content-hooks-web.js

@@ -35,5 +35,6 @@
 		dispatchEvent(new CustomEvent("single-file-push-state", { detail: { state, title, url } }));
 		pushState.call(history, state, title, url);
 	};
+	history.pushState.toString = function () { return "function pushState() { [native code]"; };
 
 })();