diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 45b5aac0..80e5fbb2 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -27196,7 +27196,7 @@ URL[JC] var pathname: String URL[JC] var port: String URL[JC] var protocol: String URL[JC] var search: String -URL[JC] var searchParams: URLSearchParams +URL[JC] val searchParams: URLSearchParams URL[JC] var username: String URL[JO] def createObjectURL(blob: Blob): String URL[JO] def createObjectURL(src: MediaSource): String diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 45b5aac0..80e5fbb2 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -27196,7 +27196,7 @@ URL[JC] var pathname: String URL[JC] var port: String URL[JC] var protocol: String URL[JC] var search: String -URL[JC] var searchParams: URLSearchParams +URL[JC] val searchParams: URLSearchParams URL[JC] var username: String URL[JO] def createObjectURL(blob: Blob): String URL[JO] def createObjectURL(src: MediaSource): String diff --git a/dom/src/main/scala/org/scalajs/dom/URL.scala b/dom/src/main/scala/org/scalajs/dom/URL.scala index aea3f393..5a13a48a 100644 --- a/dom/src/main/scala/org/scalajs/dom/URL.scala +++ b/dom/src/main/scala/org/scalajs/dom/URL.scala @@ -62,5 +62,5 @@ class URL(url: String, base: String = js.native) extends js.Object { /** Is a DOMString containing a '#' followed by the fragment identifier of the URL. */ var hash: String = js.native - var searchParams: URLSearchParams = js.native + val searchParams: URLSearchParams = js.native }