Minor fix to usage of html element for info_text

This commit is contained in:
Stephen Seo 2022-03-02 15:47:43 +09:00
parent 45e2c88745
commit 7e82a6e787
2 changed files with 2 additions and 2 deletions

View file

@ -9,4 +9,4 @@ edition = "2021"
yew = "0.19" yew = "0.19"
log = "0.4.6" log = "0.4.6"
wasm-logger = "0.2.0" wasm-logger = "0.2.0"
web-sys = { version = "0.3.56", features = ["HtmlParagraphElement"] } web-sys = { version = "0.3.56", features = ["HtmlDivElement"] }

View file

@ -164,7 +164,7 @@ impl Component for Wrapper {
// DEBUG // DEBUG
//log::info!("{}", &output_str); //log::info!("{}", &output_str);
if let Some(info_text) = if let Some(info_text) =
shared.info_text_ref.cast::<web_sys::HtmlParagraphElement>() shared.info_text_ref.cast::<web_sys::HtmlDivElement>()
{ {
// create the new text to be appended in the output // create the new text to be appended in the output
let window = web_sys::window().expect("no window exists"); let window = web_sys::window().expect("no window exists");