Moved exports to bottom of file

This commit is contained in:
z0ccc 2021-10-04 23:24:34 -04:00
parent c019dbd230
commit 025cc89f2e
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,3 @@
export { fetchAPI, checkWebWorker, getWebWorker };
// Gets location values
const fetchAPI = (setData) => {
fetch('https://api.vytal.io/ip/')
@ -23,3 +21,5 @@ const getWebWorker = () => {
}
return w;
};
export { fetchAPI, checkWebWorker, getWebWorker };

View file

@ -1,5 +1,3 @@
export { getMap, getConnection, getLocation };
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`;
@ -86,3 +84,5 @@ const getConnection = (data) => {
},
];
};
export { getMap, getConnection, getLocation };