feat: allow customizing the index and head
This commit is contained in:
1 parent
ab4f75e4ea
commit
049976d23a
6 files changed
+107
-12
No files matched your search
@@ -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))
|
||||
}
|
||||
Reference in new issue
Block a user