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

Conversation

@bofeiw
Copy link
Contributor

@bofeiw bofeiw commented Jun 10, 2023

Rowy displays "offline" error and prevents users from entering table page as seen a couple of times.

The issue is caused by the package react-detect-offline that is not maintained since 2021 and affects Chrome on Windows, Firefox on Windows, and Chrome on Linux, because its polling solution no longer works.

This PR uses navigator.onLine as a replacement. As of today, this property has full support from Chrome, Firefox and Safari. According to the spec, if it returns false, no internet connection is guaranteed, and false positive is not a issue here.

@vercel
Copy link

vercel bot commented Jun 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
rowy-os ✅ Ready (Inspect) Visit Preview Jun 10, 2023 11:18am
1 Ignored Deployment
Name Status Preview Updated (UTC)
rowy-typedoc ⬜️ Ignored (Inspect) Jun 10, 2023 11:18am

@shamsmosowi shamsmosowi merged commit 5de5e2e into develop Jun 10, 2023
@bofeiw bofeiw deleted the fix/false-offline branch June 10, 2023 18:02
@harinij harinij mentioned this pull request Jun 16, 2023
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.

3 participants