Commit 8a44726f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Save blackboard mode and activity detection across reloads.

parent fb17778b
......@@ -227,9 +227,19 @@ function reflectSettings() {
store = true;
}
getInputElement('activitybox').checked = settings.activityDetection;
if(settings.hasOwnProperty('blackboardMode')) {
getInputElement('blackboardbox').checked = settings.blackboardMode;
} else {
settings.blackboardMode = getInputElement('blackboardbox').checked;
store = true;
}
getInputElement('blackboardbox').checked = settings.blackboardMode;
if(settings.hasOwnProperty('activityDetection')) {
getInputElement('activitybox').checked = settings.activityDetection;
} else {
settings.activityDetection = getInputElement('activitybox').checked;
store = true;
}
if(store)
storeSettings(settings);
......
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