scriptURL

open external val scriptURL: String(source)

The scriptURL read-only property of the ServiceWorker interface returns the ServiceWorker serialized script URL defined as part of ServiceWorkerRegistration. Must be on the same origin as the document that registers the ServiceWorker.

MDN Reference