Skip to content

Commit e725f1a

Browse files
committed
Fix Scala 3 compile
1 parent c952e9a commit e725f1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ import scala.scalajs.js.annotation._
1818
*/
1919
@js.native
2020
@JSGlobal
21-
class EventSource(url: String, configuration: EventSourceInit = js.native) extends EventTarget {
21+
class EventSource private[this] extends EventTarget {
22+
23+
def this(url: String, configuration: EventSourceInit = js.native) = this()
2224

2325
/** The url attribute must return the absolute URL that resulted from resolving the value that was passed to the
2426
* constructor. W3C 2012

0 commit comments

Comments
 (0)