playwright/test/assets/geolocation.html

8 lines
230 B
HTML
Raw Normal View History

<script>
window.geolocationPromise = new Promise(resolve => {
navigator.geolocation.getCurrentPosition(position => {
resolve({latitude: position.coords.latitude, longitude: position.coords.longitude});
});
});
</script>