Commit 252c5ccc authored by Alex Beregszaszi's avatar Alex Beregszaszi

Fix storage issues on some browsers

parent 4023589e
......@@ -40,7 +40,8 @@ function Storage (updateFiles) {
};
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) {
......
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