Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
deansheather merged 2 commits into master from fix-sw-path
Jul 8, 2019
Merged

Fix service worker path #834

deansheather merged 2 commits into master from fix-sw-path
Jul 8, 2019

Conversation

@deansheather
Copy link
Member

@deansheather deansheather commented Jul 7, 2019

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.

trobert2 reacted with hooray emoji
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

Reviewers

@kylecarbs kylecarbs kylecarbs approved these changes

@code-asher code-asher Awaiting requested review from code-asher

+1 more reviewer

@sr229 sr229 sr229 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

service-worker script wont load from non-root path

AltStyle によって変換されたページ (->オリジナル) /