mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Use fetch to get images without adding them to the DOM straight away
This commit is contained in:
1 parent
bc35419051
commit
f9bd24e3af
1 file changed
+6
-2
@@ -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