summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Bindings/LocationObject.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-18 21:44:45 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-18 21:48:44 +0200
commit74b88a8156a0ab10fc9523c3f5871e1185f10728 (patch)
tree34ebf44839d048fb2cf58af11708f9ec3dadb483 /Userland/Libraries/LibWeb/Bindings/LocationObject.h
parent407cf048840e2d241796c7dbb1d2412648df102d (diff)
downloadserenity-74b88a8156a0ab10fc9523c3f5871e1185f10728.zip
LibWeb: Implement window.location.port
This returns the port of the current document's URL. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings/LocationObject.h')
-rw-r--r--Userland/Libraries/LibWeb/Bindings/LocationObject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/LocationObject.h b/Userland/Libraries/LibWeb/Bindings/LocationObject.h
index df01f699e5..d1e3ea5212 100644
--- a/Userland/Libraries/LibWeb/Bindings/LocationObject.h
+++ b/Userland/Libraries/LibWeb/Bindings/LocationObject.h
@@ -39,6 +39,7 @@ private:
JS_DECLARE_NATIVE_FUNCTION(hash_getter);
JS_DECLARE_NATIVE_FUNCTION(search_getter);
JS_DECLARE_NATIVE_FUNCTION(protocol_getter);
+ JS_DECLARE_NATIVE_FUNCTION(port_getter);
};
}