summaryrefslogtreecommitdiff
path: root/Applications/Help/main.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-04-24 13:04:10 +0100
committerAndreas Kling <kling@serenityos.org>2020-04-24 14:34:11 +0200
commit061205b3b3f5209c1c7a715cf68f61f2e91f161d (patch)
tree65786c21b9b022bd17b88c970229de0ab4cd061d /Applications/Help/main.cpp
parent95b51e857d8f77f8bf9c4e01a4388d42a4f49887 (diff)
downloadserenity-061205b3b3f5209c1c7a715cf68f61f2e91f161d.zip
LibWeb: Pass link target to HtmlView's on_link_click callback
Diffstat (limited to 'Applications/Help/main.cpp')
-rw-r--r--Applications/Help/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Help/main.cpp b/Applications/Help/main.cpp
index 75cf67d95f..26c69255b5 100644
--- a/Applications/Help/main.cpp
+++ b/Applications/Help/main.cpp
@@ -151,7 +151,7 @@ int main(int argc, char* argv[])
open_page(path);
};
- html_view.on_link_click = [&](const String& href) {
+ html_view.on_link_click = [&](const String& href, auto&) {
char* current_path = strdup(history.current().characters());
char* dir_path = dirname(current_path);
char* path = realpath(String::format("%s/%s", dir_path, href.characters()).characters(), nullptr);