Rewrite the restricted iterators and reorder the forward references. [skip build]
This commit is contained in:
@@ -192,7 +192,8 @@ export async function uploadCollectibleToMatrix(
|
||||
const urlToMxc = new Map<string, string>();
|
||||
const assets: Record<string, string> = {};
|
||||
|
||||
for (const asset of downloaded) {
|
||||
for (let i = 0; i < downloaded.length; i += 1) {
|
||||
const asset = downloaded[i];
|
||||
onProgress?.(`Uploading ${asset.filename}…`);
|
||||
const blob = new Blob([asset.data], { type: asset.mimeType });
|
||||
const file = new File([blob], asset.filename, { type: asset.mimeType });
|
||||
|
||||
Reference in New Issue
Block a user