Re: [ServiceWorker] Default scope to register() (#595)

I think it's ok for the default url and base url to be unrelated. ie., the following seems acceptable to me:

// example.com/foo/page.html
sw.register("bar/sw.js"); // scope == "/foo/bar/"
sw.register("bar/sw.js", { scope: "./" }); // scope == "/foo"

Anyway, this should be decided as soon as possible, as changing it later will likely break sites.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/595#issuecomment-68661162

Received on Monday, 5 January 2015 02:17:55 UTC