Explorar o código

ensure options.framesData is defined

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

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

@@ -337,7 +337,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 
 		initialize() {
 			this.maxResources = this.batchRequest.getMaxResources();
-			if (!this.options.saveRawPage && !this.options.removeFrames) {
+			if (!this.options.saveRawPage && !this.options.removeFrames && this.options.framesData) {
 				this.options.framesData.forEach(frameData => this.maxResources += frameData.maxResources || 0);
 			}
 			this.stats.set("processed", "resources", this.maxResources);