|
@@ -273,7 +273,6 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
// ------------
|
|
// ------------
|
|
|
// DOMProcessor
|
|
// DOMProcessor
|
|
|
// ------------
|
|
// ------------
|
|
|
- const ESCAPED_FRAGMENT = "_escaped_fragment_=";
|
|
|
|
|
const EMPTY_DATA_URI = "data:base64,";
|
|
const EMPTY_DATA_URI = "data:base64,";
|
|
|
const EMPTY_IMAGE = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";
|
|
const EMPTY_IMAGE = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";
|
|
|
|
|
|
|
@@ -299,19 +298,6 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
}
|
|
}
|
|
|
this.doc = DOM.createDoc(pageContent, this.baseURI);
|
|
this.doc = DOM.createDoc(pageContent, this.baseURI);
|
|
|
this.onEventAttributeNames = DOM.getOnEventAttributeNames(this.doc);
|
|
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() {
|
|
async getPageData() {
|