瀏覽代碼

fixed issue #260

Former-commit-id: 212212dd30cdd9bdcadeff2a8262c2d38149a5eb
Gildas 6 年之前
父節點
當前提交
3b2ce51c84
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      lib/hooks/content/content-hooks-frames-web.js
  2. 1 0
      lib/hooks/content/content-hooks-web.js

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

@@ -55,6 +55,7 @@
 	const Blob = window.Blob;
 	const requestAnimationFrame = window.requestAnimationFrame;
 	const cancelAnimationFrame = window.cancelAnimationFrame;
+	const console = window.console;
 
 	const observers = new Map();
 	const observedElements = new Map();

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

@@ -34,6 +34,7 @@
 	const fetch = window.fetch;
 	const addEventListener = window.addEventListener;
 	const pushState = history.pushState;
+	const console = window.console;
 
 	let warningDisplayed;
 	history.pushState = function (state, title, url) {