File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
dom/src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,12 @@ import scala.scalajs.js.annotation._
18
18
*/
19
19
@ js.native
20
20
@ JSGlobal
21
- class Worker ( scriptURL : String , options : WorkerOptions ) extends AbstractWorker {
21
+ class Worker extends AbstractWorker {
22
22
23
- def this (scriptURL : String ) = this (scriptURL, js.native)
23
+ 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 ()
24
27
25
28
/** The Worker.onmessage property represents an EventHandler, that is a function to be called when the message event
26
29
* occurs. These events are of type MessageEvent and will be called when the worker calls its own postMessage()
You can’t perform that action at this time.
0 commit comments