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

Commit

Permalink
Swithc to localstorage memory
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Aug 24, 2017
1 parent 74e1852 commit c31d96c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions iris/renderer/browser-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ global.window = {
hash: '',
},
};
var LocalStorage = require('node-localstorage').LocalStorage,
localStorage = new LocalStorage('./test');
var localStorage = require('localstorage-memory');
global.localStorage = localStorage;
global.navigator = {
userAgent: '',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"immutability-helper": "^2.2.0",
"json-stringify-pretty-compact": "^1.0.4",
"linkify-it": "^2.0.3",
"localstorage-memory": "^1.0.2",
"lodash": "^4.17.4",
"moment": "^2.18.1",
"node-env-file": "^0.1.8",
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5040,6 +5040,10 @@ loader-utils@^1.0.2, loader-utils@^1.1.0:
emojis-list "^2.0.0"
json5 "^0.5.0"

localstorage-memory@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/localstorage-memory/-/localstorage-memory-1.0.2.tgz#cd4a8f210e55dd519c929f4b4cc82829b58f9a51"

locate-path@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
Expand Down

0 comments on commit c31d96c

Please sign in to comment.