Skip to content

Commit 4a6e9ad

Browse files
authored
fix: url href (#252)
1 parent 74e1444 commit 4a6e9ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NativeScript/runtime/URLImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ void URLImpl::GetHref(v8::Local<v8::String> property,
268268
}
269269
auto isolate = info.GetIsolate();
270270

271-
auto value = ptr->GetURL()->get_hostname();
271+
auto value = ptr->GetURL()->get_href();
272272

273273
info.GetReturnValue().Set(ToV8String(isolate, value.data(), (int)value.length()));
274274

0 commit comments

Comments
 (0)