|
|
@@ -195,8 +195,6 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
if (this.root && this.options.doc) {
|
|
|
util.postProcessDoc(this.options.doc, this.markedElements);
|
|
|
}
|
|
|
- this.options.doc = null;
|
|
|
- this.options.win = null;
|
|
|
}
|
|
|
|
|
|
cancel() {
|
|
|
@@ -228,6 +226,8 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
this.onprogress(new ProgressEvent(RESOURCE_LOADED, detail));
|
|
|
}, this.options);
|
|
|
await this.pendingPromises;
|
|
|
+ this.options.doc = null;
|
|
|
+ this.options.win = null;
|
|
|
await this.executeStage(REPLACE_DOCS_STAGE);
|
|
|
await this.executeStage(POST_PROCESS_STAGE);
|
|
|
this.processor.finalize();
|