Moved exports to bottom of file
This commit is contained in:
parent
c019dbd230
commit
025cc89f2e
2 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
export { fetchAPI, checkWebWorker, getWebWorker };
|
|
||||||
|
|
||||||
// Gets location values
|
// Gets location values
|
||||||
const fetchAPI = (setData) => {
|
const fetchAPI = (setData) => {
|
||||||
fetch('https://api.vytal.io/ip/')
|
fetch('https://api.vytal.io/ip/')
|
||||||
|
|
@ -23,3 +21,5 @@ const getWebWorker = () => {
|
||||||
}
|
}
|
||||||
return w;
|
return w;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export { fetchAPI, checkWebWorker, getWebWorker };
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
export { getMap, getConnection, getLocation };
|
|
||||||
|
|
||||||
const getMap = (data) =>
|
const getMap = (data) =>
|
||||||
`https://maps.googleapis.com/maps/api/staticmap?center=${data.lat},${data.lon}&markers=color:red%7Clabel:%7C${data.lat},${data.lon}&size=500x200&zoom=10&key=AIzaSyB-YN-X8PGBSPd7NOaQu4csVhgJUnF3ZGk`;
|
`https://maps.googleapis.com/maps/api/staticmap?center=${data.lat},${data.lon}&markers=color:red%7Clabel:%7C${data.lat},${data.lon}&size=500x200&zoom=10&key=AIzaSyB-YN-X8PGBSPd7NOaQu4csVhgJUnF3ZGk`;
|
||||||
|
|
||||||
|
|
@ -86,3 +84,5 @@ const getConnection = (data) => {
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export { getMap, getConnection, getLocation };
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue