Skip to content
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

Make relative paths possible #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jstaerk
Copy link

@jstaerk jstaerk commented Apr 11, 2022

in case someone has her local server set up in a way that /Hello-PWA is not the document root (but e.g. /, so that one would access http://127.0.0.1/HelloPWA/index.html instead of just http://127.0.0.1/index.html ) this allows to run the PWA nevertheless, independent from the path: otherwise the manifest is looked up from the wrong URL, the service worker has the wrong URL and the start_url in the manifest is also incorrect.

make local path for manifest possible
make local paths possible in the service worker
make relative paths possible for the start url
@jstaerk
Copy link
Author

jstaerk commented Apr 11, 2022

PS: great tutorial, thanks

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.

2 participants