Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api-reports/2_12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15482,11 +15482,11 @@ Location[JT] var hash: String
Location[JT] var host: String
Location[JT] var hostname: String
Location[JT] var href: String
Location[JT] def origin: js.UndefOr[String]
Location[JT] def origin: String
Location[JT] var pathname: String
Location[JT] var port: String
Location[JT] var protocol: String
Location[JT] def reload(flag: Boolean?): Unit
Location[JT] def reload: Unit
Location[JT] def replace(url: String): Unit
Location[JT] var search: String
MIMEType[JT]
Expand Down
4 changes: 2 additions & 2 deletions api-reports/2_13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15482,11 +15482,11 @@ Location[JT] var hash: String
Location[JT] var host: String
Location[JT] var hostname: String
Location[JT] var href: String
Location[JT] def origin: js.UndefOr[String]
Location[JT] def origin: String
Location[JT] var pathname: String
Location[JT] var port: String
Location[JT] var protocol: String
Location[JT] def reload(flag: Boolean?): Unit
Location[JT] def reload: Unit
Location[JT] def replace(url: String): Unit
Location[JT] var search: String
MIMEType[JT]
Expand Down
4 changes: 2 additions & 2 deletions dom/src/main/scala/org/scalajs/dom/Location.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ trait Location extends js.Object {
*
* This property also does not exist consistently on IE, even as new as IE11, hence it must be UndefOr.
*/
def origin: js.UndefOr[String] = js.native
def origin: String = js.native

/** The Location.reload()method Reloads the resource from the current URL. Its optional unique parameter is a Boolean,
* which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified,
* the browser may reload the page from its cache.
*/
def reload(flag: Boolean = js.native): Unit = js.native
def reload: Unit = js.native

/** The Location.replace()method replaces the current resource with the one at the provided URL. The difference from
* the assign() method is that after using replace() the current page will not be saved in session History, meaning
Expand Down