Log message when the dark theme cookie can't be read
This commit is contained in:
parent
44eb2bbe42
commit
4f749c7d88
1 changed files with 5 additions and 1 deletions
|
|
@ -393,7 +393,11 @@ async fn context(
|
||||||
let tr = Tr::new(&language);
|
let tr = Tr::new(&language);
|
||||||
|
|
||||||
let dark_theme = match jar.get(common::consts::COOKIE_DARK_THEME) {
|
let dark_theme = match jar.get(common::consts::COOKIE_DARK_THEME) {
|
||||||
Some(dark_theme_cookie) => dark_theme_cookie.value().parse().unwrap_or_default(),
|
Some(dark_theme_cookie) => dark_theme_cookie
|
||||||
|
.value()
|
||||||
|
.parse()
|
||||||
|
.inspect_err(|err| warn!("Can't parse dark theme cookie: {}", err))
|
||||||
|
.unwrap_or_default(),
|
||||||
None => false,
|
None => false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue