Fix storage issues on some browsers

pull/1/head
Alex Beregszaszi 8 years ago
parent 4023589e4f
commit 252c5ccc81
  1. 3
      src/app/storage.js

@ -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) {

Loading…
Cancel
Save