fix: eval (#3877)
This commit is contained in:
1 parent
a1107de0c0
commit
9ffa42392f
10 files changed
+31
-6
No files matched your search
@@ -80,6 +80,7 @@ impl QueryEngine {
|
||||
let promise = (new AsyncFunction("dioxus", {script:?}))(dioxus);
|
||||
promise
|
||||
.then((result)=>{{
|
||||
dioxus.close();
|
||||
let returned_value = {{
|
||||
"method": "query",
|
||||
"params": {{
|
||||
@@ -96,6 +97,7 @@ impl QueryEngine {
|
||||
}})
|
||||
.catch(err => post_error(`Error running JS: ${{err}}`));
|
||||
}} catch (error) {{
|
||||
dioxus.close();
|
||||
post_error(`Invalid JS: ${{error}}`);
|
||||
}}
|
||||
}})();"#
|
||||
|
||||
Reference in new issue
Block a user