fix: use weak instead of sync

This commit is contained in:
Jonathan Kelley 2022-12-07 15:42:39 -08:00
parent 7ce07e3164
commit 1c3f4b2bc4

View file

@ -415,7 +415,7 @@ mod web {
}
}
fn attach_listeners(&self, svc: std::sync::Weak<crate::RouterService>) {
fn attach_listeners(&self, svc: std::rc::Weak<crate::RouterService>) {
self._listener.set(Some(EventListener::new(
&web_sys::window().unwrap(),
"popstate",