Commit 77652802 authored by Leo Iannacone's avatar Leo Iannacone

Merge remote-tracking branch 'github/master' into portable

parents 1ce43427 e57f5e46
...@@ -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