UNPKG

@maz-ui/utils

Version:

Utils of maz-ui for JavaScript/TypeScript users

13 lines (12 loc) 246 B
async function c() { try { const o = await fetch("https://ipwho.is"), { country_code: t } = await o.json(); return t; } catch (o) { console.error(`[maz-ui](fetchLocaleIp) ${o}`); return; } } export { c as fetchLocaleIp };