This commit is contained in:
Alessio Davoli 2023-07-13 18:29:37 +02:00
parent 60ec4ef25e
commit 3000cb89ca

View file

@ -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 { };