Commit 4c7c2cac authored by Rob Stupay's avatar Rob Stupay

update storage.js

parent a42040de
...@@ -44,6 +44,8 @@ function Storage (prefix) { ...@@ -44,6 +44,8 @@ function Storage (prefix) {
// NOTE: this is a workaround for some browsers // NOTE: this is a workaround for some browsers
if (typeof window !== 'undefined') { if (typeof window !== 'undefined') {
return Object.keys(window.localStorage).filter(function (item) { return item !== null && item !== undefined }) return Object.keys(window.localStorage).filter(function (item) { return item !== null && item !== undefined })
} else {
return []
} }
} }
......
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