mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-16 07:33:35 +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>
|