trisquel-icecat/icecat/testing/web-platform/tests/permissions-policy/resources/permissions-policy-geolocation.html

11 lines
270 B
HTML

<script>
const type = "availability-result";
navigator.geolocation.getCurrentPosition(
() => {
window.parent.postMessage({ type, enabled: true }, "*");
},
() => {
window.parent.postMessage({ type, enabled: false }, "*");
}
);
</script>