File tree 3 files changed +9
-0
lines changed 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Breaking changes:
9
9
New features:
10
10
- Added ` languages ` value for ` Navigator ` (#59 by @toastal )
11
11
- Added ` HTMLHtmlElement ` module and ` documentElement ` function ` HTMLDocument ` (#60 by @toastal )
12
+ - Added ` onLine ` value for ` Navigator ` (#61 by @toastal )
12
13
13
14
Bugfixes:
14
15
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ exports.languages = function (navigator) {
12
12
} ;
13
13
} ;
14
14
15
+ exports . onLine = function ( navigator ) {
16
+ return function ( ) {
17
+ return navigator . onLine ;
18
+ } ;
19
+ } ;
20
+
15
21
exports . platform = function ( navigator ) {
16
22
return function ( ) {
17
23
return navigator . platform ;
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ foreign import language :: Navigator -> Effect String
8
8
9
9
foreign import languages :: Navigator -> Effect (Array String )
10
10
11
+ foreign import onLine :: Navigator -> Effect Boolean
12
+
11
13
foreign import platform :: Navigator -> Effect String
12
14
13
15
foreign import userAgent :: Navigator -> Effect String
You can’t perform that action at this time.
0 commit comments