diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-08-04 22:36:56 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-08-04 22:36:56 +0530 |
| commit | c7e105ee4254d00f591c4c002f32c223f4c2448a (patch) | |
| tree | 17ebadd5dc1a5e148c4b2f5ed1c70b7c7e54fe1a /src/widgets/EdgeDecoration.cpp | |
| parent | 0d1258aee3f39c8d5348588a87e804ec8cd27bd5 (diff) | |
| download | null-browser-c7e105ee4254d00f591c4c002f32c223f4c2448a.tar.gz null-browser-c7e105ee4254d00f591c4c002f32c223f4c2448a.zip | |
Add on_result callback for web.view.run_js
Diffstat (limited to 'src/widgets/EdgeDecoration.cpp')
| -rw-r--r-- | src/widgets/EdgeDecoration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/EdgeDecoration.cpp b/src/widgets/EdgeDecoration.cpp index bb114bf..76974be 100644 --- a/src/widgets/EdgeDecoration.cpp +++ b/src/widgets/EdgeDecoration.cpp @@ -94,10 +94,10 @@ void EdgeDecoration::set_url(const QUrl &url) { webview.value()->setUrl(url); } -void EdgeDecoration::run_javascript(const QString &js_code) { +void EdgeDecoration::run_javascript(const QString &js_code, const JsOnResultFunc &on_result) { if (!webview.has_value()) return; - webview.value()->run_javascript(js_code); + webview.value()->run_javascript(js_code, on_result); } std::optional<WebViewId> EdgeDecoration::get_view_id() { |
