Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Update warning message
  • Loading branch information
ryanhamley committed Oct 31, 2018
commit ac9df2d80b99e237f368495c140669ffee0461d7
2 changes: 1 addition & 1 deletion src/util/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function restore(): Window {
// See https://github.com/mapbox/mapbox-gl-js/pull/7455 for discussion
delete window.localStorage;
delete window.sessionStorage;
window.localStorage = window.sessionStorage = () => console.log('local and session storage not available in Node');
window.localStorage = window.sessionStorage = () => console.log('Local and session storage not available in Node. Use a stub implementation if needed for testing.');

window.devicePixelRatio = 1;

Expand Down