diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-07-27 20:21:07 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-07-27 20:27:42 +0530 |
| commit | 8604765c3660dbea9cae6996d5750bfb985e6751 (patch) | |
| tree | 3a90f68dd07f8eb6a9c92d1f322162ac3b345383 /src/widgets/WebView.hpp | |
| parent | c95ee83c24b79e64a91a6d3a55addcb6e7ebd11b (diff) | |
| download | null-browser-8604765c3660dbea9cae6996d5750bfb985e6751.tar.gz null-browser-8604765c3660dbea9cae6996d5750bfb985e6751.zip | |
Add web.view.run_js + change rpc js api
Diffstat (limited to '')
| -rw-r--r-- | src/widgets/WebView.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/WebView.hpp b/src/widgets/WebView.hpp index 7a767d3..36a252d 100644 --- a/src/widgets/WebView.hpp +++ b/src/widgets/WebView.hpp @@ -1,6 +1,7 @@ #pragma once #include <QMainWindow> +#include <QWebEnginePage> #include <QWebEngineUrlRequestInterceptor> #include <QWebEngineUrlRequestJob> #include <QWebEngineUrlSchemeHandler> @@ -31,6 +32,7 @@ public: void enable_rpc_api(); void expose_rpc_function(const QString &name, const RpcFunc &action); + DELEGATE(page(), runJavaScript, run_javascript) DEFINE_GETTER(get_id, id) private: |
