Commit 6d8c50f2 authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #243 from ethereum/storage-fix

Fix storage issues on some browsers
parents 4023589e 252c5ccc
...@@ -40,7 +40,8 @@ function Storage (updateFiles) { ...@@ -40,7 +40,8 @@ function Storage (updateFiles) {
}; };
this.keys = function () { this.keys = function () {
return Object.keys(window.localStorage); // NOTE: this is a workaround for some browsers
return Object.keys(window.localStorage).filter(function (item) { return item !== null && item !== undefined; });
}; };
this.loadFile = function (filename, content) { this.loadFile = function (filename, content) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment