mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Make the request one by one to avoid "net::ERR_INSUFFICIENT_RESOURCES" errors
This commit is contained in:
parent
f491488863
commit
35fbb41638
@ -3,7 +3,11 @@ async function loadAllData() {
|
|||||||
abs: [],
|
abs: [],
|
||||||
fluo: [],
|
fluo: [],
|
||||||
};
|
};
|
||||||
dic.abs = await Promise.all(getAbsFilesName().map((f) => VertDataFile.loadAsync(f,VertExcitationKinds.Absorbtion)))
|
for (const f of getAbsFilesName()) {
|
||||||
dic.fluo = await Promise.all(getFluoFilesName().map((f) => VertDataFile.loadAsync(f,VertExcitationKinds.Fluorescence)))
|
dic.abs.push(await VertDataFile.loadAsync(f,VertExcitationKinds.Absorbtion))
|
||||||
|
}
|
||||||
|
for (const f of getFluoFilesName()) {
|
||||||
|
dic.fluo.push(await VertDataFile.loadAsync(f,VertExcitationKinds.Fluorescence))
|
||||||
|
}
|
||||||
return dic;
|
return dic;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user