fix debug class being added to body in release mode

This commit is contained in:
zyl 2024-06-25 01:11:00 -07:00
parent f55b8a8126
commit 126b38db7e
No known key found for this signature in database

View file

@ -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(())
}),