Compare commits

...

1 Commits

Author SHA1 Message Date
Balázs Orbán
f3291025e6 fix(core): properly construct url (#5984) 2022-12-08 04:33:20 +01:00

View File

@@ -44,7 +44,7 @@ export function getURL(
if (!host) throw new TypeError("Invalid host")
return new URL(url ?? "", new URL(host))
return new URL(`${host}${url ?? ""}`)
} catch (error) {
return error as Error
}