The href property of a WorkerLocation object returns a string containing the serialized URL for the worker's location.
href
MDN Reference