← getCurrentPosition() Has No Default Timeout. That's the Trap.
Playground

getCurrentPosition() — interactive playground

preview

Edits run in a sandbox in your browser — nothing is saved and nothing leaves the page.