|
|
@@ -196,7 +196,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
await this.pendingPromises;
|
|
|
await this.executeStage(REPLACE_DOCS_STAGE);
|
|
|
await this.executeStage(POST_PROCESS_STAGE);
|
|
|
- await this.processor.end();
|
|
|
+ await this.processor.finalize();
|
|
|
}
|
|
|
|
|
|
async getPageData() {
|
|
|
@@ -409,7 +409,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
- async end() {
|
|
|
+ async finalize() {
|
|
|
const metaCharset = this.doc.head.querySelector("meta[charset]");
|
|
|
if (metaCharset) {
|
|
|
this.doc.head.insertBefore(metaCharset, this.doc.head.firstChild);
|