scala-js/scala-js-dom

`Location#origin` should return a `String`

armanbilge opened this issue · 1 comments

There's a reason it doesn't, but it's not a particularly good one.

* 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

https://developer.mozilla.org/en-US/docs/Web/API/Location/origin#browser_compatibility

Oh and also this flag parameter is not part of the spec, just a firefox thing ...

def reload(flag: Boolean = js.native): Unit = js.native