From c7e105ee4254d00f591c4c002f32c223f4c2448a Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 4 Aug 2025 22:36:56 +0530 Subject: Add on_result callback for web.view.run_js --- src/widgets/IWebViewMediator.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widgets/IWebViewMediator.hpp') diff --git a/src/widgets/IWebViewMediator.hpp b/src/widgets/IWebViewMediator.hpp index a7007f2..a5a8fdb 100644 --- a/src/widgets/IWebViewMediator.hpp +++ b/src/widgets/IWebViewMediator.hpp @@ -12,6 +12,7 @@ public: virtual void set_html(const QString &html, WebViewId webview_id) = 0; virtual void expose_rpc_function(const QString &name, const RpcFunc &action, WebViewId webview_id) = 0; - virtual void run_javascript(const QString &js_code, WebViewId webview_id) = 0; + virtual void run_javascript(const QString &js_code, WebViewId webview_id, + const JsOnResultFunc &on_result) = 0; virtual void reload(WebViewId webview_id) = 0; }; -- cgit v1.3.1