diff options
Diffstat (limited to 'Libraries/LibWeb/Bindings/LocationObject.cpp')
-rw-r--r-- | Libraries/LibWeb/Bindings/LocationObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Bindings/LocationObject.cpp b/Libraries/LibWeb/Bindings/LocationObject.cpp index 7864f54efc..27dddc64d7 100644 --- a/Libraries/LibWeb/Bindings/LocationObject.cpp +++ b/Libraries/LibWeb/Bindings/LocationObject.cpp @@ -84,7 +84,7 @@ JS::Value LocationObject::hostname_getter(JS::Interpreter& interpreter) JS::Value LocationObject::host_getter(JS::Interpreter& interpreter) { auto& window = static_cast<WindowObject&>(interpreter.global_object()); - auto& url = window.impl().document().url(); + auto url = window.impl().document().url(); StringBuilder builder; builder.append(url.host()); builder.append(':'); |