The host property of a WorkerLocation object returns the URL.host part of the worker's location.
host
MDN Reference