Skip to content

Commit fd5d61d

Browse files
committed
Update the scaladocs for the methods
1 parent 3c3b511 commit fd5d61d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,12 @@ trait Location extends js.Object {
4343
* URL, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed
4444
* by the port (the default port, 80 and 443 respectively, if explicitly specified). For URL using file: scheme, the
4545
* value is browser dependant.
46-
*
47-
* This property also does not exist consistently on IE, even as new as IE11, hence it must be UndefOr.
4846
*/
4947
def origin: String = js.native
5048

51-
/** The Location.reload()method Reloads the resource from the current URL. Its optional unique parameter is a Boolean,
52-
* which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified,
53-
* the browser may reload the page from its cache.
49+
/** Reloads the resource from the current URL, like the Refresh button. The reload may be blocked and a SECURITY_ERROR
50+
* DOMException thrown. This happens if the origin of the script calling location.reload() differs from the origin of
51+
* the page that owns the Location object.
5452
*/
5553
def reload: Unit = js.native
5654

0 commit comments

Comments
 (0)