Skip to content

Commit

Permalink
Use memory localstorage and save as dependencies
Browse files Browse the repository at this point in the history
It will enable skygear to run in node.
  • Loading branch information
rickmak authored and Ben Lei committed Jul 19, 2016
1 parent 8bd8a7c commit 7bc2537
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if (typeof window !== 'undefined') {
}
}
} else {
var localStorage = require('localStorage');
var localStorage = require('localstorage-memory');
store = new Store(localStorage);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"gulp-uglify": "^1.5.3",
"gulp-util": "^3.0.6",
"isparta": "^3.5.3",
"localStorage": "^1.0.3",
"preprocessify": "0.0.6",
"require-dir": "^0.3.0",
"sinon": "^1.17.2",
Expand All @@ -63,6 +62,7 @@
"cookie-storage": "^1.0.4",
"event-emitter": "^0.3.4",
"localforage": "~1.2.10",
"localstorage-memory": "^1.0.2",
"lodash": "^3.10.1",
"md5": "^2.0.0",
"superagent": "^1.3.0",
Expand Down

0 comments on commit 7bc2537

Please sign in to comment.