Hullo JS
Github
Chat
Searchβ¦
Hullo JS
Hullo π
Hullo π core
Intro to Core
API
Hullo π browser
Intro to Browser
API
interconnect
fetch
geolocation
ofFrames
ofHistory
ofMessagePort
ofWebSocket
onLine
pageVisibility
nextFrame
|> route
Hullo π DOM
Intro to DOM
Guide
API
Hullo π Node
Intro to Node
API
Powered By
GitBook
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!
Previous
fetch
Next
ofFrames
Last modified
3yr ago
Copy link