summaryrefslogtreecommitdiff
path: root/Demos/WebView/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/WebView/main.cpp')
-rw-r--r--Demos/WebView/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Demos/WebView/main.cpp b/Demos/WebView/main.cpp
index 3d6446bb98..4fe29c725f 100644
--- a/Demos/WebView/main.cpp
+++ b/Demos/WebView/main.cpp
@@ -56,6 +56,11 @@ int main(int argc, char** argv)
statusbar.set_text("");
};
+ view.on_link_click = [&](auto& url, auto&, auto) {
+ if (url.is_valid())
+ view.load(url);
+ };
+
view.load("file:///res/html/misc/welcome.html");
return app->exec();