summaryrefslogtreecommitdiff
path: root/Applications/Browser/Tab.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/Browser/Tab.cpp
parent95b51e857d8f77f8bf9c4e01a4388d42a4f49887 (diff)
downloadserenity-061205b3b3f5209c1c7a715cf68f61f2e91f161d.zip
LibWeb: Pass link target to HtmlView's on_link_click callback
Diffstat (limited to 'Applications/Browser/Tab.cpp')
-rw-r--r--Applications/Browser/Tab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp
index b16b0f79b5..daaba4a027 100644
--- a/Applications/Browser/Tab.cpp
+++ b/Applications/Browser/Tab.cpp
@@ -133,7 +133,7 @@ Tab::Tab()
update_bookmark_button(url.to_string());
};
- m_html_widget->on_link_click = [this](auto& url) {
+ m_html_widget->on_link_click = [this](auto& url, auto&) {
if (url.starts_with("#")) {
m_html_widget->scroll_to_anchor(url.substring_view(1, url.length() - 1));
} else {