diff --git a/Klausur.html b/Klausur.html
index 96988bb..6660b0f 100644
--- a/Klausur.html
+++ b/Klausur.html
@@ -176,8 +176,15 @@
get_params[sp[0]] = decodeURIComponent(sp[1]);
switch(sp[0]) {
case "inputDarkMode":
- document.getElementById(sp[0]).checked=get_params[sp[0]];
- console.log("Loaded IDM: " + sp[0] + " => " + get_params[sp[0]]);
+ switch(get_params[sp[0]]) {
+ case "true":
+ document.getElementById(sp[0]).checked=true;
+ break;
+ case "false":
+ document.getElementById(sp[0]).checked=false;
+ break;
+ }
+ console.log("Loaded IDM: " + sp[0] + " => " + document.getElementById(sp[0]).checked);
break;
case "inputExamDuration":
case "inputExtraDuration":