참고소스 수정본
This commit is contained in:
7
참고/playwright-main/tests/assets/geolocation.html
Normal file
7
참고/playwright-main/tests/assets/geolocation.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<script>
|
||||
window.geolocationPromise = new Promise(resolve => {
|
||||
navigator.geolocation.getCurrentPosition(position => {
|
||||
resolve({latitude: position.coords.latitude, longitude: position.coords.longitude});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user