瀏覽代碼

minor fix

Gildas 7 年之前
父節點
當前提交
1e606d945e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/frame-tree/content/frame-tree.js

+ 1 - 1
lib/frame-tree/content/frame-tree.js

@@ -258,7 +258,7 @@ this.FrameTree = this.FrameTree || (() => {
 
 
 	function postProcessDoc(doc) {
 	function postProcessDoc(doc) {
 		doc.head.querySelectorAll("disabled-noscript").forEach(element => {
 		doc.head.querySelectorAll("disabled-noscript").forEach(element => {
-			const noscriptElement = this.options.doc.createElement("noscript");
+			const noscriptElement = doc.createElement("noscript");
 			Array.from(element.childNodes).forEach(node => noscriptElement.appendChild(node));
 			Array.from(element.childNodes).forEach(node => noscriptElement.appendChild(node));
 			element.parentElement.replaceChild(noscriptElement, element);
 			element.parentElement.replaceChild(noscriptElement, element);
 		});
 		});