mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
LibWeb: Remove duplicated locals in EventHandler::handle_mousedown()
This commit is contained in:
parent
da7a8fc055
commit
2c4829cb14
Notes:
sideshowbarker
2024-07-18 22:28:12 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2c4829cb147
1 changed files with 0 additions and 2 deletions
|
@ -174,8 +174,6 @@ bool EventHandler::handle_mousedown(const Gfx::IntPoint& position, unsigned butt
|
|||
auto url = document->complete_url(href);
|
||||
dbgln("Web::EventHandler: Clicking on a link to {}", url);
|
||||
if (button == GUI::MouseButton::Left) {
|
||||
auto href = link->href();
|
||||
auto url = document->complete_url(href);
|
||||
if (href.starts_with("javascript:")) {
|
||||
document->run_javascript(href.substring_view(11, href.length() - 11));
|
||||
} else if (href.starts_with('#')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue