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

Ignore Service Worker Registration #202

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

Conversation

carrfane
Copy link

Why?

For my use case, I need to manually register the service worker only if certain conditions are met, for this, I passed a flag to avoid that the plugin registers the service worker, and I register in another place on my app.

How it works?

in your ember-cli-build you pass

'ember-service-worker': {
ignoreRegistration: true
}

and the plugin will not register the service worker, allowing you to do the registration manually in your app.

@carrfane carrfane changed the title [WIP] Ignore Service Worker Registration Ignore Service Worker Registration Oct 29, 2021
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.

None yet

1 participant