proxy: switch to "auto" as the default theme
use the "auto" theme per default. it uses a media query to detect the users preferred theme. Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
This commit is contained in:
parent
66bcf56cda
commit
ee0eaeae63
@ -103,9 +103,9 @@ fn get_theme(headers: &http::HeaderMap) -> String {
|
||||
};
|
||||
|
||||
match cookie_from_header(headers, "PBSThemeCookie") {
|
||||
Some(theme) if theme == "auto" => theme,
|
||||
Some(theme) if theme != "__default__" && exists(&theme) => theme,
|
||||
_ => String::from(""),
|
||||
Some(theme) if theme == "crisp" => String::from(""),
|
||||
Some(theme) if exists(&theme) => theme,
|
||||
_ => String::from("auto"),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user