add examples for onmounted
This commit is contained in:
1 parent
e0d46d9820
commit
a551c0fcb8
5 files changed
+135
-3
No files matched your search
@@ -88,12 +88,10 @@ impl RenderedElementBacking for DesktopElement {
|
||||
self.id.0, focus
|
||||
);
|
||||
|
||||
println!("script: {}", script);
|
||||
let fut = self
|
||||
.query
|
||||
.new_query::<bool>(&script, &self.webview)
|
||||
.resolve();
|
||||
println!("fut");
|
||||
|
||||
Box::pin(async move {
|
||||
match fut.await {
|
||||
|
||||
@@ -265,7 +265,7 @@ pub fn launch_with_props<P: 'static>(root: Component<P>, props: P, cfg: Config)
|
||||
EventData::Ipc(msg) if msg.method() == "query" => {
|
||||
let params = msg.params();
|
||||
|
||||
if let Ok(result) = dbg!(serde_json::from_value::<QueryResult>(params)) {
|
||||
if let Ok(result) = serde_json::from_value::<QueryResult>(params) {
|
||||
let view = webviews.get(&event.1).unwrap();
|
||||
let query = view
|
||||
.dom
|
||||
|
||||
Reference in new issue
Block a user