mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Use fetch to get images without adding them to the DOM straight away
This commit is contained in:
@@ -26,8 +26,12 @@
|
||||
if (isCloud) {
|
||||
regions = await sdk.forConsole.billing.listRegions();
|
||||
regions.regions.forEach((region) => {
|
||||
const img = new Image();
|
||||
img.src = getFlagUrl(region.flag);
|
||||
fetch(getFlagUrl(region.flag)).then((response) => {
|
||||
if (!response.ok) {
|
||||
return;
|
||||
}
|
||||
return response.blob();
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user