Explorar o código

always empty options.doc and options.win

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
bb05f745f2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lib/single-file/single-file-core.js

+ 2 - 2
lib/single-file/single-file-core.js

@@ -177,9 +177,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 			this.pendingPromises = this.executeStage(REPLACE_DATA_STAGE);
 			if (this.options.doc) {
 				docUtil.postProcessDoc(this.options.doc, this.options);
-				this.options.doc = null;
-				this.options.win = null;
 			}
+			this.options.doc = null;
+			this.options.win = null;
 		}
 
 		async run() {