From 4a6e9adde6950e09ac0c2fd2713e25aa919ad448 Mon Sep 17 00:00:00 2001 From: Osei Fortune Date: Fri, 26 Apr 2024 17:41:20 -0400 Subject: [PATCH] fix: url href (#252) --- NativeScript/runtime/URLImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NativeScript/runtime/URLImpl.cpp b/NativeScript/runtime/URLImpl.cpp index 54a10530..50ca6157 100644 --- a/NativeScript/runtime/URLImpl.cpp +++ b/NativeScript/runtime/URLImpl.cpp @@ -268,7 +268,7 @@ void URLImpl::GetHref(v8::Local property, } auto isolate = info.GetIsolate(); - auto value = ptr->GetURL()->get_hostname(); + auto value = ptr->GetURL()->get_href(); info.GetReturnValue().Set(ToV8String(isolate, value.data(), (int)value.length()));