Browse Source

forgot one

Andrew Collins 2 years ago
parent
commit
64575eaee2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/desktop/src/lib.rs

+ 1 - 1
packages/desktop/src/lib.rs

@@ -248,7 +248,7 @@ pub fn launch_with_props<P: 'static>(root: Component<P>, props: P, cfg: Config)
                     webviews[&event.1]
                         .dom
                         .base_scope()
-                        .consume_context::<DesktopContext>()
+                        .consume_context::<Rc<DesktopContext>>()
                         .unwrap()
                         .eval
                         .send(msg.params())