Use cookies for dark mode

(also reverts most back-end changes from previous commit)
This commit is contained in:
2018-08-06 16:02:42 +02:00
parent 9fd6890667
commit a63e605a15
11 changed files with 98 additions and 11 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ function faker() {
}
function dark_mode() {
return user() !== NULL && user()->dark_mode;
return isset($_COOKIE["dark_mode"]);
}
/**