feat: allow customizing the index and head

This commit is contained in:
Jonathan Kelley committed 2022-04-16 16:53:47 -04:00
1 parent ab4f75e4ea
commit 049976d23a
6 files changed
+107 -12

No files matched your search

+1 -1
View File
@@ -201,7 +201,7 @@ pub(super) fn handler(
/// Get a closure that executes any JavaScript in the WebView context.
pub fn use_eval<S: std::string::ToString>(cx: &ScopeState) -> &dyn Fn(S) {
let desktop = use_window(&cx).clone();
let desktop = use_window(cx).clone();
cx.use_hook(|_| move |script| desktop.eval(script))
}