Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Web/HTML/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ exports.scrollY = function (window) {
};
};

exports.devicePixelRatio = function(window) {
return function() {
return window.devicePixelRatio;
};
};

exports.localStorage = function (window) {
return function () {
return window.localStorage;
Expand Down
3 changes: 3 additions & 0 deletions src/Web/HTML/Window.purs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module Web.HTML.Window
, scrollBy
, scrollX
, scrollY
, devicePixelRatio
, localStorage
, sessionStorage
, requestAnimationFrame
Expand Down Expand Up @@ -114,6 +115,8 @@ foreign import scrollX :: Window -> Effect Int

foreign import scrollY :: Window -> Effect Int

foreign import devicePixelRatio :: Window -> Effect Number

foreign import localStorage :: Window -> Effect Storage

foreign import sessionStorage :: Window -> Effect Storage
Expand Down