10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Make the request one by one to avoid "net::ERR_INSUFFICIENT_RESOURCES" errors

This commit is contained in:
Mickaël Véril 2020-05-25 11:02:57 +02:00
parent f491488863
commit 35fbb41638

View File

@ -3,7 +3,11 @@ async function loadAllData() {
abs: [],
fluo: [],
};
dic.abs = await Promise.all(getAbsFilesName().map((f) => VertDataFile.loadAsync(f,VertExcitationKinds.Absorbtion)))
dic.fluo = await Promise.all(getFluoFilesName().map((f) => VertDataFile.loadAsync(f,VertExcitationKinds.Fluorescence)))
for (const f of getAbsFilesName()) {
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;
}