From b0f598910f1f8bc8db6b65a0f01b1950ed7c3841 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 26 Jul 2025 16:59:35 +0530 Subject: Add web.view.expose for simple lua->js interop in decorations --- src/widgets/BrowserWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/widgets/BrowserWindow.cpp') diff --git a/src/widgets/BrowserWindow.cpp b/src/widgets/BrowserWindow.cpp index f97f397..1fcf0c0 100644 --- a/src/widgets/BrowserWindow.cpp +++ b/src/widgets/BrowserWindow.cpp @@ -97,3 +97,8 @@ void BrowserWindow::open_url(const QUrl &url, OpenType open_type, WebViewId webv void BrowserWindow::set_html(const QString &html, WebViewId webview_id) { get_webview_mediator(webview_id)->set_html(html, webview_id); } + +void BrowserWindow::expose_rpc_function(const QString &name, const RpcFunc &action, + WebViewId webview_id) { + get_webview_mediator(webview_id)->expose_rpc_function(name, action, webview_id); +} -- cgit v1.3.1