fallback on cookies if localStorage is null or undefined

This commit is contained in:
Calvin Montgomery 2013-07-02 22:40:40 -04:00
parent 91a2fcb61d
commit 6a6dd7bc21
2 changed files with 11 additions and 2 deletions

View file

@ -507,7 +507,7 @@ function showOptionsMenu() {
function saveOpts() {
for(var key in USEROPTS) {
localStorage.setItem(key, USEROPTS[key]);
setOpt(key, USEROPTS[key]);
}
}