Skip to content

Commit 91456f6

Browse files
committed
Fix up methods of Location
1 parent 635de87 commit 91456f6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

api-reports/2_12.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15482,11 +15482,11 @@ Location[JT] var hash: String
1548215482
Location[JT] var host: String
1548315483
Location[JT] var hostname: String
1548415484
Location[JT] var href: String
15485-
Location[JT] def origin: js.UndefOr[String]
15485+
Location[JT] def origin: String
1548615486
Location[JT] var pathname: String
1548715487
Location[JT] var port: String
1548815488
Location[JT] var protocol: String
15489-
Location[JT] def reload(flag: Boolean?): Unit
15489+
Location[JT] def reload: Unit
1549015490
Location[JT] def replace(url: String): Unit
1549115491
Location[JT] var search: String
1549215492
MIMEType[JT]

api-reports/2_13.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15482,11 +15482,11 @@ Location[JT] var hash: String
1548215482
Location[JT] var host: String
1548315483
Location[JT] var hostname: String
1548415484
Location[JT] var href: String
15485-
Location[JT] def origin: js.UndefOr[String]
15485+
Location[JT] def origin: String
1548615486
Location[JT] var pathname: String
1548715487
Location[JT] var port: String
1548815488
Location[JT] var protocol: String
15489-
Location[JT] def reload(flag: Boolean?): Unit
15489+
Location[JT] def reload: Unit
1549015490
Location[JT] def replace(url: String): Unit
1549115491
Location[JT] var search: String
1549215492
MIMEType[JT]

dom/src/main/scala/org/scalajs/dom/Location.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ trait Location extends js.Object {
4646
*
4747
* This property also does not exist consistently on IE, even as new as IE11, hence it must be UndefOr.
4848
*/
49-
def origin: js.UndefOr[String] = js.native
49+
def origin: String = js.native
5050

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

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

0 commit comments

Comments
 (0)