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