This commit is contained in:
Horis
2025-12-21 14:49:40 +08:00
parent 5370e3bfd3
commit ec0bcac59f
@@ -22,9 +22,9 @@ class JsURL(url: String, baseUrl: String? = null) {
} }
host = mUrl.host host = mUrl.host
origin = if (mUrl.port > 0) { origin = if (mUrl.port > 0) {
"${mUrl.protocol}://$host:${mUrl}:${mUrl.port}" "${mUrl.protocol}://$host:${mUrl.port}"
} else { } else {
"${mUrl.protocol}://$host:${mUrl}" "${mUrl.protocol}://$host"
} }
pathname = mUrl.path pathname = mUrl.path
val query = mUrl.query val query = mUrl.query