mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
switch location url
This commit is contained in:
parent
ba49dde985
commit
67e5b295dc
@ -20,7 +20,7 @@ export const useLocation = () => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function fetchData() {
|
async function fetchData() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('https://location.kremalicious.com')
|
const response = await fetch('https://location.kretschmann.io')
|
||||||
const data = await response.json()
|
const data = await response.json()
|
||||||
if (!data) return
|
if (!data) return
|
||||||
setLocation(data)
|
setLocation(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user