Fix #17: Remember state of book summary panel

This commit is contained in:
Samy Pessé
2014-04-03 23:17:44 -07:00
parent fc6d911340
commit 405792fd8f
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -15,8 +15,10 @@ define(function(){
get: function(key, def) {
key = baseKey+":"+key;
try {
return JSON.parse(localStorage[key]) || def;
var v = JSON.parse(localStorage[key]);
return v == null ? def : v;;
} catch(err) {
console.error(err);
return localStorage[key] || def;
}
},
+1 -1
View File
File diff suppressed because one or more lines are too long