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() {
var load = function () {
for (var key in config.preferences) {
var value = localStorage.getItem(key);
if (value) {
if (value !== null && value !== 'undefined') {
debug(2, 'loading preference', key, 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