mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 09:23:16 +01:00
Matthias Kretschmann
0d08ba807b
* tweak number display * select whole amount upon input focus * handle letter input * number formatting
6 lines
154 B
TypeScript
6 lines
154 B
TypeScript
export async function fetcher(url: string) {
|
|
const res = await fetch(url)
|
|
if (!res.ok) throw new Error('Failed to fetch')
|
|
return await res.json()
|
|
}
|