|
|
@@ -339,11 +339,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
}
|
|
|
|
|
|
async loadPage(pageContent) {
|
|
|
- let resourceURL;
|
|
|
if (!pageContent || this.options.saveRawPage) {
|
|
|
const content = await DocUtil.getContent(this.baseURI, { asDataURI: false, maxResourceSize: this.options.maxResourceSize, maxResourceSizeEnabled: this.options.maxResourceSizeEnabled });
|
|
|
pageContent = content.data;
|
|
|
- this.baseURI = this.options.url = resourceURL;
|
|
|
}
|
|
|
this.doc = DocUtil.createDoc(pageContent, this.baseURI);
|
|
|
this.onEventAttributeNames = Util.getOnEventAttributeNames(this.doc);
|