File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,12 @@ exports.scrollY = function (window) {
176
176
} ;
177
177
} ;
178
178
179
+ exports . devicePixelRatio = function ( window ) {
180
+ return function ( ) {
181
+ return window . devicePixelRatio ;
182
+ } ;
183
+ } ;
184
+
179
185
exports . localStorage = function ( window ) {
180
186
return function ( ) {
181
187
return window . localStorage ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ module Web.HTML.Window
25
25
, scrollBy
26
26
, scrollX
27
27
, scrollY
28
+ , devicePixelRatio
28
29
, localStorage
29
30
, sessionStorage
30
31
, requestAnimationFrame
@@ -114,6 +115,8 @@ foreign import scrollX :: Window -> Effect Int
114
115
115
116
foreign import scrollY :: Window -> Effect Int
116
117
118
+ foreign import devicePixelRatio :: Window -> Effect Number
119
+
117
120
foreign import localStorage :: Window -> Effect Storage
118
121
119
122
foreign import sessionStorage :: Window -> Effect Storage
You can’t perform that action at this time.
0 commit comments