10
0
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:
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: [], 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;
} }