mirror of
https://github.com/zyllian/webdog.git
synced 2025-01-18 03:32:21 -08:00
add debug class to body when serving, not just in debug mode
This commit is contained in:
parent
e339bb20ea
commit
4cb4e036b6
1 changed files with 3 additions and 2 deletions
|
@ -165,9 +165,10 @@ impl SiteBuilder {
|
|||
let mut rewriter = HtmlRewriter::new(
|
||||
Settings {
|
||||
element_content_handlers: vec![
|
||||
#[cfg(debug_assertions)]
|
||||
element!("body", |el| {
|
||||
el.set_attribute("class", "debug")?;
|
||||
if self.serving {
|
||||
el.set_attribute("class", "debug")?;
|
||||
}
|
||||
Ok(())
|
||||
}),
|
||||
element!("head", |el| {
|
||||
|
|
Loading…
Add table
Reference in a new issue