diff --git a/Userland/Libraries/LibWeb/Page/EventHandler.cpp b/Userland/Libraries/LibWeb/Page/EventHandler.cpp index 7a69085aa4..21f5d12df3 100644 --- a/Userland/Libraries/LibWeb/Page/EventHandler.cpp +++ b/Userland/Libraries/LibWeb/Page/EventHandler.cpp @@ -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('#')) {