1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00

LibWeb: Pass link target to HtmlView's on_link_click callback

This commit is contained in:
Linus Groh 2020-04-24 13:04:10 +01:00 committed by Andreas Kling
parent 95b51e857d
commit 061205b3b3
5 changed files with 5 additions and 4 deletions

View file

@ -238,7 +238,7 @@ void HtmlView::mousedown_event(GUI::MouseEvent& event)
run_javascript_url(link->href());
} else {
if (on_link_click)
on_link_click(link->href());
on_link_click(link->href(), link->target());
}
} else {
if (event.button() == GUI::MouseButton::Left) {