Преглед изворни кода

ensure options.framesData is defined

Gildas пре 7 година
родитељ
комит
7d6913918d
1 измењених фајлова са 1 додато и 1 уклоњено
  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);