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

ws и sw fix #40

Merged
merged 18 commits into from
May 31, 2024
Merged

ws и sw fix #40

merged 18 commits into from
May 31, 2024

Conversation

oFem1m
Copy link
Collaborator

@oFem1m oFem1m commented May 30, 2024

При закрытиии браузером ws происходит открытие нового ws с некоторой задержкой. Исправлена проблема с оффлайном

@oFem1m oFem1m requested a review from johnSamilin May 30, 2024 14:53
src/index.js Outdated
@@ -18,15 +18,17 @@ function registerServiceWorker() {
navigator.serviceWorker
.getRegistrations()
.then(function (registrations) {
if (registrations.length === 0) {
console.log(registrations);
if (registrations.length === 0 || registrations.length === 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

registrations.length < 2?

@oFem1m oFem1m merged commit df30e93 into develop May 31, 2024
1 check passed
@oFem1m oFem1m deleted the ws-fix branch May 31, 2024 17:23
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