Re: [w3c/ServiceWorker] Find a way for service workers to get their current state (#1077)

@aliams @asutherland @youennf @cdumez I believe there was agreement for this feature at the F2F, but I'd like to be sure.

TL;DR: In a service worker, `self.serviceWorker` gives you a service worker instance for this service worker.

So, if you wanted to know what state this service worker was in, you'd read `self.serviceWorker.state`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1077#issuecomment-501330124

Received on Wednesday, 12 June 2019 15:38:08 UTC