importScripts

external fun importScripts(vararg urls: String)(source)

The importScripts() method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope.

MDN Reference


external fun importScripts(vararg urls: URL)(source)