Added api vytal fetch to location block

This commit is contained in:
z0ccc 2021-07-27 18:09:16 -04:00
parent e7af71646b
commit 6611007288

View file

@ -7,7 +7,7 @@ const LocationBlock = () => {
const [display, setDisplay] = useState('');
useEffect(() => {
fetch('http://ip-api.com/json')
fetch('https://api.vytal.io/ip/')
.then((response) => response.json())
.then((data) => {
setLocationData(data);