diff --git a/app-proto/src/engine.rs b/app-proto/src/engine.rs index 9f4c688..8b5d982 100644 --- a/app-proto/src/engine.rs +++ b/app-proto/src/engine.rs @@ -1,7 +1,10 @@ use lazy_static::lazy_static; use nalgebra::{Const, DMatrix, DVector, DVectorView, Dyn, SymmetricEigen}; use std::fmt::{Display, Error, Formatter}; -use web_sys::{console, wasm_bindgen::JsValue}; /* DEBUG */ + +/* DEBUG */ +#[cfg(not(feature = "dev"))] +use sycamore::prelude::console_log; // --- elements --- @@ -167,10 +170,8 @@ impl ConfigSubspace { /* DEBUG */ // print the eigenvalues - #[cfg(all(target_family = "wasm", target_os = "unknown"))] - console::log_1(&JsValue::from( - format!("Eigenvalues used to find kernel:{}", eig.eigenvalues) - )); + #[cfg(not(feature = "dev"))] + console_log!("Eigenvalues used to find kernel:{}", eig.eigenvalues); // express the basis in the standard coordinates let basis_std = proj_to_std * &basis_proj;