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

Draft
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.

@pikurasa
Copy link
Collaborator

@samar-703 please respond to Walter's comment last month of "Please explain why and how you tested your changes."

@samar-703
Copy link
Author

@samar-703 please respond to Walter's comment last month of "Please explain why and how you tested your changes."

I did not check my tests properly, I am sorry about that, I made a pr too soon.

@retrogtx
Copy link
Contributor

@samar-703 please respond to Walter's comment last month of "Please explain why and how you tested your changes."

I did not check my tests properly, I am sorry about that, I made a pr too soon.

it's alright you can convert this into a draft.

@samar-703 samar-703 closed this Jan 23, 2025
@samar-703 samar-703 reopened this Jan 23, 2025
@samar-703 samar-703 marked this pull request as draft January 23, 2025 10:52
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.

4 participants