Fix localStorage

main
Mike Fix 7 years ago
parent 348bbfb08b
commit 959703c51a

@ -10,6 +10,7 @@ if (typeof window !== 'undefined') {
const mapper = new Morph({ const mapper = new Morph({
types: { types: {
bool: v => { bool: v => {
if (v == null) return undefined
if (v === 'false') return false if (v === 'false') return false
return Boolean(v) return Boolean(v)
} }

Loading…
Cancel
Save