Closed mdziekon closed 8 years ago
@elgerlambert I think this latest commit needs publishing to npm
@elgerlambert sorry to bump, can you please publish latest version?
Sorry guys, started a new job, needed to find my bearings. I'll try to get on it this weekend!
Solves problem with
localStorage
being undefined in non-browser environments (like node).Inspired by this comment, but made it as a getter function to prevent code repetition and easier changes to the default value in the future.