Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
localstorage noop
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Aug 24, 2017
1 parent c31d96c commit 73e6297
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iris/renderer/browser-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ global.window = {
hash: '',
},
};
var localStorage = require('localstorage-memory');
global.localStorage = localStorage;
global.localStorage = {
getItem: () => null,
setItem: () => {},
};
global.navigator = {
userAgent: '',
};

0 comments on commit 73e6297

Please sign in to comment.