Skip to content

chore: setup service worker for offline usage (fix #46)#48

Open
leocaseiro wants to merge 1 commit intomontulli:masterfrom
leocaseiro:setup-service-worker-offline-usage
Open

chore: setup service worker for offline usage (fix #46)#48
leocaseiro wants to merge 1 commit intomontulli:masterfrom
leocaseiro:setup-service-worker-offline-usage

Conversation

@leocaseiro
Copy link
Copy Markdown

@leocaseiro leocaseiro commented Oct 9, 2023

I was able to load the whole app offline.

It worked on iPhone, as well as on laptop (Chrome).

fix #46


self.addEventListener('install', function(e) {
e.waitUntil(
caches.open('montulli.github.io').then(function(cache) {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll probably need to replace that for mikeslessons.com/groove, and change GrooveScribe with groove, but my PR is for the gh-pages one.

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.

Feature Request: Offline first via SW (PWA)

1 participant