فهرست منبع

removed obsolete code

Gildas 7 سال پیش
والد
کامیت
cbfb00e192
1فایلهای تغییر یافته به همراه0 افزوده شده و 9 حذف شده
  1. 0 9
      lib/single-file/single-file-core.js

+ 0 - 9
lib/single-file/single-file-core.js

@@ -91,7 +91,6 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		async initialize() {
 			this.onprogress(new ProgressEvent(RESOURCES_INITIALIZING, { pageURL: this.options.url }));
 			this.processor.removeUIElements();
-			this.processor.enableDisabledNoscriptTags(this.processor.doc.head.querySelectorAll("disabled-noscript"));
 			this.processor.replaceEmptyStyles();
 			if (!this.options.jsEnabled || (this.options.saveRawPage && this.options.removeScripts)) {
 				this.processor.insertNoscriptContents();
@@ -317,14 +316,6 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 			};
 		}
 
-		enableDisabledNoscriptTags(noscriptTags) {
-			noscriptTags.forEach(element => {
-				const noscriptElement = this.options.doc.createElement("noscript");
-				Array.from(element.childNodes).forEach(node => noscriptElement.appendChild(node));
-				element.parentElement.replaceChild(noscriptElement, element);
-			});
-		}
-
 		insertNoscriptContents() {
 			const DOMParser = DOM.getParser();
 			if (DOMParser) {