mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 02:26:42 -07:00
fix debug class being added to body in release mode
This commit is contained in:
parent
f55b8a8126
commit
126b38db7e
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ impl<'a> SiteBuilder<'a> {
|
|||
Settings {
|
||||
element_content_handlers: vec![
|
||||
element!("body", |el| {
|
||||
#[cfg(debug_assertions)]
|
||||
el.set_attribute("class", "debug")?;
|
||||
Ok(())
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue