Skip to content

Commit 3fd9226

Browse files
xiaohuohumaxgithub-actions[bot]
authored andcommitted
build: 📦 build user script
1 parent abd95a9 commit 3fd9226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/zip-downloader.lib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name Zip Downloader
33
// @namespace xiaohuohumax/userscripts/zip-downloader
4-
// @version 2.0.3
4+
// @version 2.1.0
55
// @author xiaohuohumax
66
// @description Zip Downloader -- 资源下载器(下载资源、Zip 压缩、下载到本地)
77
// @license MIT
@@ -6637,7 +6637,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
66376637
await Promise.all(options.resources.map((resource, index) => limit(async () => {
66386638
var _a;
66396639
await ((_a = options.onProgress) == null ? void 0 : _a.call(options, index));
6640-
const reader = isBlobResource(resource) ? new BlobReader(resource.blob) : new HttpReader(resource.url);
6640+
const reader = isBlobResource(resource) ? new BlobReader(typeof resource.blob === "function" ? await resource.blob() : resource.blob) : new HttpReader(resource.url);
66416641
return writer.add(resource.name, reader);
66426642
})));
66436643
const blob = await writer.close();

0 commit comments

Comments
 (0)