File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Breaking changes:
99New features:
1010- Added ` languages ` value for ` Navigator ` (#59 by @toastal )
1111- Added ` HTMLHtmlElement ` module and ` documentElement ` function ` HTMLDocument ` (#60 by @toastal )
12+ - Added ` onLine ` value for ` Navigator ` (#61 by @toastal )
1213
1314Bugfixes:
1415
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ exports.languages = function (navigator) {
1212 } ;
1313} ;
1414
15+ exports . onLine = function ( navigator ) {
16+ return function ( ) {
17+ return navigator . onLine ;
18+ } ;
19+ } ;
20+
1521exports . platform = function ( navigator ) {
1622 return function ( ) {
1723 return navigator . platform ;
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ foreign import language :: Navigator -> Effect String
88
99foreign import languages :: Navigator -> Effect (Array String )
1010
11+ foreign import onLine :: Navigator -> Effect Boolean
12+
1113foreign import platform :: Navigator -> Effect String
1214
1315foreign import userAgent :: Navigator -> Effect String
You can’t perform that action at this time.
0 commit comments