Commit e57f5e46 authored by Leo Iannacone's avatar Leo Iannacone

fix preferences if has on false value

parent 008f579c
...@@ -8,7 +8,7 @@ function Preferences() { ...@@ -8,7 +8,7 @@ function Preferences() {
var load = function () { var load = function () {
for (var key in config.preferences) { for (var key in config.preferences) {
var value = localStorage.getItem(key); var value = localStorage.getItem(key);
if (value) { if (value !== null && value !== 'undefined') {
debug(2, 'loading preference', key, value); debug(2, 'loading preference', key, value);
config.preferences[key] = JSON.parse(value); config.preferences[key] = JSON.parse(value);
} }
......
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