Closed eklem closed 1 year ago
Since it needs to be asynchronous, I'm not fully sure it should be a function in the library. It may need to trigger another function outside the library. I'll make it a sample code that people can copy and edit. And also add it to the demo.
Not sure how to bundle, but will figure out. UMD and ESM for the browser and ESM and CJS for NodeJS.
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition