diff --git a/remix-lib/src/storage.js b/remix-lib/src/storage.js index 36deb80bbb..36feab7e98 100644 --- a/remix-lib/src/storage.js +++ b/remix-lib/src/storage.js @@ -44,6 +44,8 @@ function Storage (prefix) { // NOTE: this is a workaround for some browsers if (typeof window !== 'undefined') { return Object.keys(window.localStorage).filter(function (item) { return item !== null && item !== undefined }) + } else { + return [] } }