electron/spec/fixtures/pages/permissions/geolocation.html
2016-01-30 19:10:52 +05:30

5 lines
155 B
HTML

<script>
navigator.geolocation.getCurrentPosition(() => {}, (err) => {
require('electron').ipcRenderer.sendToHost('message', err.message);
});
</script>