popcode
popcode copied to clipboard
Degrade gracefully if local storage isn’t available
Currently the rehydrateProject() function throws an error if localStorage is null. Given that Popcode’s core functionality does not rely on localStorage, we should fall back gracefully to a noop for the project grace period feature.
Error in Popcode
TypeError in / Cannot read property 'getItem' of null
Stacktrace
webpack:///src/clients/localStorage.js:12 - W5mC.t.b
Created by Matthew Brown via Bugsnag