Re: [w3c/ServiceWorker] Proposal: pass custom params in ServiceWorkerRegistration for future use (#1157)

@asutherland I want to pass whatever params to sw.js without adding params in URL. Imagine like HTML having multiple JS files with global variables - each of the files can after read those global variables, while in  sw.js it is not allowed, even will not access localStorage ... I want be able to define whatever params in `navigator.serviceWorker.register` that after would be used in **sw.js**. In top comment you can see few usable cases for it (version, environment, urlsToCache).

-- 
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/1157#issuecomment-306279779

Received on Monday, 5 June 2017 19:31:07 UTC