Skip to content

Commit 37a4697

Browse files
committed
Add stub for window.location.origin
Not sure how I missed it the first time around, but here it is
1 parent 8ffe180 commit 37a4697

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4397,7 +4397,16 @@ trait Location extends js.Object {
43974397
* MDN
43984398
*/
43994399
var host: js.String = ???
4400-
4400+
/**
4401+
* Theorigin read-only property is a String containing the Unicode serialization of the
4402+
* origin of the represented URL, that is, for http and https, the scheme followed by
4403+
* '://', followed by the domain, followed by ':', followed by the port (the default
4404+
* port, 80 and 443 respectively, if explicitely specified). For URL using file: scheme,
4405+
* the value is browser dependant.
4406+
*
4407+
* MDN
4408+
*/
4409+
def origin: js.String = ???
44014410
/**
44024411
* The Location.reload()method Reloads the resource from the current URL. Its
44034412
* optional unique parameter is a Boolean, which, when it is true, causes the page to

0 commit comments

Comments
 (0)