Skip to content

Conversation

deansheather
Copy link
Member

Describe in detail the problem you had and how this PR fixes it

This addresses #670 by making the service worker register at the base of the mount. I also changed it so that workbox is hosted from local and not a CDN. This helps simplify CSP issues that pop up when mounting as part of a larger site. There are still quite a few other ones once we start talking plugins but this is a start.

Is there an open issue you can link to?

Closes #670.

Note: this was originally opened in #722 by @geiseri but blocked by inactive user and no PGP signature.

@sr229
Copy link
Contributor

sr229 commented Jul 7, 2019

Just read everything and it seems fine.

I do recommend adding Co-Authored-By so the OP of the PR can still get credited.

deansheather and others added 2 commits July 7, 2019 15:12
Co-Authored-By: Ian Reinhart Geiser <geiseri@geekcentral.pub>
Co-Authored-By: Ian Reinhart Geiser <geiseri@geekcentral.pub>
@deansheather deansheather merged commit 79e08c7 into master Jul 8, 2019
@deansheather deansheather deleted the fix-sw-path branch July 8, 2019 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

service-worker script wont load from non-root path

3 participants