Skip to content

Commit 7cd969c

Browse files
reload is a method and needs ()
Co-authored-by: Arman Bilge <[email protected]>
1 parent fd5d61d commit 7cd969c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ trait Location extends js.Object {
5050
* DOMException thrown. This happens if the origin of the script calling location.reload() differs from the origin of
5151
* the page that owns the Location object.
5252
*/
53-
def reload: Unit = js.native
53+
def reload(): Unit = js.native
5454

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

0 commit comments

Comments
 (0)