message: fix(web): ensure wasm initialization code runs only once
diff: @@ -30,8 +30,6 @@ pub struct NextcladeWasm {
  impl NextcladeWasm {
  #[wasm_bindgen(constructor)]
  pub fn new(params: &NextcladeParams) -> Result<NextcladeWasm, JsError> {
  - wasm_logger::init(wasm_logger::Config::default());
  - console_error_panic_hook::set_once();
  let nextclade = jserr(Nextclade::new(params))?;
  Ok(Self { nextclade })
  }
  @@ -112,3 +110,9 @@ impl NextcladeWasm {
  Ok(())
  }
  }
  +
  +#[wasm_bindgen(start)]
  +pub fn main() {
  + wasm_logger::init(wasm_logger::Config::default());
  + console_error_panic_hook::set_once();
  +}
  