瀏覽代碼

added toString methos

Gildas 6 年之前
父節點
當前提交
201a6f83de
共有 1 個文件被更改,包括 1 次插入0 次删除
  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]"; };
 
 })();