diff --git a/frontend/src/lib/gps.worker.ts b/frontend/src/lib/gps.worker.ts new file mode 100644 index 0000000..738e0be --- /dev/null +++ b/frontend/src/lib/gps.worker.ts @@ -0,0 +1,16 @@ + + +if (!("geolocation" in navigator)) { + /* geolocation is not available */ + return; +} + +const watchID = navigator.geolocation.watchPosition((position) => { + console.log(position.coords.latitude, position.coords.longitude); +}); + +onmessage = () => { + console.log("Props"); +}; + +export { }; \ No newline at end of file