The url read-only property of the Client interface returns the URL of the current service worker client.
url
MDN Reference