- From: Matt Falkenhagen <notifications@github.com>
- Date: Sun, 04 Jan 2015 18:17:23 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Monday, 5 January 2015 02:17:55 UTC
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