这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix usage of config option service_worker_register #1440

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

Conversation

thiscode
Copy link
Contributor

This will fix the Issue #1439

Signed-off-by: Thomas Miliopoulos <github@thiscode.com>
@@ -106,7 +106,7 @@ export const initWorkerAsync = async (configuration, configurationName) => {
}

let registration = null;
if (configuration.register) {
if (configuration.register || configuration.service_worker_register) {
Copy link
Contributor

Choose a reason for hiding this comment

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

thank you so much @thiscode
It should be only
if (configuration.service_worker_register) {

I have checkout the code and configuration.register does not exist any more. I should add more Typing to this file.

Copy link
Contributor

Choose a reason for hiding this comment

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

I squash merge your PullRequest, Thank you @thiscode ! it is already better.

@guillaume-chervet guillaume-chervet merged commit d15a57d into AxaFrance:main Aug 25, 2024
13 checks passed
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