Note: This feature is only available in Service Workers.
The get() method of the Clients interface gets a service worker client matching a given id and returns it in a Promise.
get(id)idA string representing the id of the client you want to get.
A Promise that resolves to a Client object or undefined.
self.clients.get(id).then((client) => {
self.clients.openWindow(client.url);
});