aboutsummaryrefslogtreecommitdiff
path: root/src/WindowActionRouter.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-08-04 22:36:56 +0530
committerAkshay Nair <phenax5@gmail.com>2025-08-04 22:36:56 +0530
commitc7e105ee4254d00f591c4c002f32c223f4c2448a (patch)
tree17ebadd5dc1a5e148c4b2f5ed1c70b7c7e54fe1a /src/WindowActionRouter.cpp
parent0d1258aee3f39c8d5348588a87e804ec8cd27bd5 (diff)
downloadnull-browser-c7e105ee4254d00f591c4c002f32c223f4c2448a.tar.gz
null-browser-c7e105ee4254d00f591c4c002f32c223f4c2448a.zip
Add on_result callback for web.view.run_js
Diffstat (limited to '')
-rw-r--r--src/WindowActionRouter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WindowActionRouter.cpp b/src/WindowActionRouter.cpp
index 558a46e..f513210 100644
--- a/src/WindowActionRouter.cpp
+++ b/src/WindowActionRouter.cpp
@@ -78,9 +78,9 @@ void WindowActionRouter::initialize(Configuration *config) {
{ window->expose_rpc_function(name, action, webview_id); });
});
connect(&runtime, &LuaRuntime::webview_js_eval_requested, this,
- [this](const QString &js_code, WebViewId webview_id) {
+ [this](const QString &js_code, WebViewId webview_id, const JsOnResultFunc &on_result) {
WITH_WEBVIEW_WINDOW(webview_id, window,
- { window->run_javascript(js_code, webview_id); });
+ { window->run_javascript(js_code, webview_id, on_result); });
});
connect(&runtime, &LuaRuntime::webview_reload_requested, this, [this](WebViewId webview_id) {
WITH_WEBVIEW_WINDOW(webview_id, window, { window->reload(webview_id); });