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

used async/syntax for better readability & performance #4144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samar-703
Copy link

Simplified fetch event handling

console.log("[PWA Builder] Caching pages during install");
return cache.addAll(precacheFiles);
})
);
});

// Allow sw to control of current page
self.addEventListener("activate", function (event) {
// eslint-disable-next-line no-console
Copy link
Contributor

Choose a reason for hiding this comment

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

why did you remove this line?

@samar-703
Copy link
Author

samar-703 commented Dec 15, 2024 via email

@walterbender
Copy link
Member

Can you please elaborate on the what and why of your changes?

@samar-703
Copy link
Author

Can you please elaborate on the what and why of your changes?

  1. I just minimized some lines of code keeping functionality the same in sw.js file

@retrogtx
Copy link
Contributor

you just need to test the file sw.js

it looks good but attaching a working video of music blocks will be good enough since you have not added any description

@walterbender
Copy link
Member

Yes. Please explain why and how you tested your changes.

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.

3 participants