mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
8 lines
230 B
HTML
8 lines
230 B
HTML
<script>
|
|
window.geolocationPromise = new Promise(resolve => {
|
|
navigator.geolocation.getCurrentPosition(position => {
|
|
resolve({latitude: position.coords.latitude, longitude: position.coords.longitude});
|
|
});
|
|
});
|
|
</script>
|