Kaynağa Gözat

remived escaped fragment support

Gildas 7 yıl önce
ebeveyn
işleme
3a734c7ae3
1 değiştirilmiş dosya ile 0 ekleme ve 14 silme
  1. 0 14
      lib/single-file/single-file-core.js

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

@@ -273,7 +273,6 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 	// ------------
 	// DOMProcessor
 	// ------------
-	const ESCAPED_FRAGMENT = "_escaped_fragment_=";
 	const EMPTY_DATA_URI = "data:base64,";
 	const EMPTY_IMAGE = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";
 
@@ -299,19 +298,6 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 			}
 			this.doc = DOM.createDoc(pageContent, this.baseURI);
 			this.onEventAttributeNames = DOM.getOnEventAttributeNames(this.doc);
-			if (!pageContent && this.doc.querySelector("meta[name=fragment][content=\"!\"]") && !this.baseURI.endsWith("?" + ESCAPED_FRAGMENT) && !this.baseURI.endsWith("&" + ESCAPED_FRAGMENT)) {
-				await DOMProcessor.loadEscapedFragmentPage();
-			}
-		}
-
-		async loadEscapedFragmentPage() {
-			if (this.baseURI.includes("?")) {
-				this.baseURI += "&";
-			} else {
-				this.baseURI += "?";
-			}
-			this.baseURI += ESCAPED_FRAGMENT;
-			await this.loadPage();
 		}
 
 		async getPageData() {