Hullo JS
Search…
geolocation
import { geolocation } from '@hullo/browser'
Thin adapter for navigator.geolocation for Hullo.
1
import { geolocation } from '@hullo/browser';
2
​
3
geolocation().subscribe({
4
next(result) {
5
switch (result.ok) {
6
case true:
7
console.log(result.position);
8
break;
9
10
case false:
11
console.error('error!');
12
break;
13
}
14
}
15
});
Copied!
Last modified 2yr ago
Copy link