瀏覽代碼

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) {