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