We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53f9a1a + 13ac947 commit 5a85518Copy full SHA for 5a85518
dom/src/main/scala/org/scalajs/dom/Worker.scala
@@ -18,9 +18,12 @@ import scala.scalajs.js.annotation._
18
*/
19
@js.native
20
@JSGlobal
21
-class Worker(scriptURL: String, options: WorkerOptions) extends AbstractWorker {
+class Worker extends AbstractWorker {
22
23
- def this(scriptURL: String) = this(scriptURL, js.native)
+ def this(scriptURL: String, options: WorkerOptions) = this()
24
+ def this(scriptURL: String) = this()
25
+ def this(scriptURL: URL, options: WorkerOptions) = this()
26
+ def this(scriptURL: URL) = this()
27
28
/** The Worker.onmessage property represents an EventHandler, that is a function to be called when the message event
29
* occurs. These events are of type MessageEvent and will be called when the worker calls its own postMessage()
0 commit comments