Source code

Revision control

Copy as Markdown

Other Tools

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