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

SW init without Wrokbox #56

Closed
Spomky opened this issue Feb 5, 2024 · 1 comment · Fixed by #57
Closed

SW init without Wrokbox #56

Spomky opened this issue Feb 5, 2024 · 1 comment · Fixed by #57
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Spomky
Copy link
Member

Spomky commented Feb 5, 2024

Description

At the moment, Workbow Window is always used, even if Workox is disable.
The bundle should use the following way to initialize the SW when in this case:

<script defer>
  if ('serviceWorker' in navigator) {
    navigator.serviceWorker.register('/service-worker.js', {scope: "/", use_cache: true})
  }
</script>

Example

No response

@Spomky Spomky added the enhancement New feature or request label Feb 5, 2024
@Spomky Spomky added this to the 1.0.0 milestone Feb 5, 2024
@Spomky Spomky self-assigned this Feb 5, 2024
@Spomky Spomky linked a pull request Feb 6, 2024 that will close this issue
4 tasks
@Spomky Spomky closed this as completed in #57 Feb 6, 2024
Copy link

github-actions bot commented Mar 9, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant