fix: use weak instead of sync

This commit is contained in:
Jonathan Kelley committed 2022-12-07 15:42:39 -08:00
1 parent 7ce07e3164
commit 1c3f4b2bc4
1 file changed
+1 -1
+1 -1
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",