We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e3c7da commit a9ab55fCopy full SHA for a9ab55f
dom/src/main/scala/org/scalajs/dom/Worker.scala
@@ -18,7 +18,9 @@ import scala.scalajs.js.annotation._
18
*/
19
@js.native
20
@JSGlobal
21
-class Worker(scriptURL: String, options: js.UndefOr[WorkerOptions] = js.native) extends AbstractWorker {
+class Worker(scriptURL: String, options: WorkerOptions) extends AbstractWorker {
22
+
23
+ def this(scriptURL: String) = this(scriptURL, js.native)
24
25
/** The Worker.onmessage property represents an EventHandler, that is a function to be called when the message event
26
* occurs. These events are of type MessageEvent and will be called when the worker calls its own postMessage()
0 commit comments