File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Notable changes to this project are documented in this file. The format is based
7
7
Breaking changes:
8
8
9
9
New features:
10
+ - Added ` languages ` value for ` Navigator ` (#59 by @toastal )
10
11
11
12
Bugfixes:
12
13
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ exports.language = function (navigator) {
6
6
} ;
7
7
} ;
8
8
9
+ exports . languages = function ( navigator ) {
10
+ return function ( ) {
11
+ return navigator . languages ;
12
+ } ;
13
+ } ;
14
+
9
15
exports . platform = function ( navigator ) {
10
16
return function ( ) {
11
17
return navigator . platform ;
@@ -16,4 +22,4 @@ exports.userAgent = function (navigator) {
16
22
return function ( ) {
17
23
return navigator . userAgent ;
18
24
} ;
19
- } ;
25
+ } ;
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ foreign import data Navigator :: Type
6
6
7
7
foreign import language :: Navigator -> Effect String
8
8
9
+ foreign import languages :: Navigator -> Effect (Array String )
10
+
9
11
foreign import platform :: Navigator -> Effect String
10
12
11
- foreign import userAgent :: Navigator -> Effect String
13
+ foreign import userAgent :: Navigator -> Effect String
You can’t perform that action at this time.
0 commit comments