Преглед на файлове

use Map#size to get the size of the Map

Gildas преди 7 години
родител
ревизия
b338a37a5d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -286,7 +286,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		}
 
 		getMaxResources() {
-			return Array.from(this.requests.keys()).length;
+			return this.requests.size;
 		}
 
 		async run(onloadListener, options) {