Skip to content

Fix service worker path #834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2019
Merged

Fix service worker path #834

merged 2 commits into from
Jul 8, 2019

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 <[email protected]>
@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