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

Do nothing if there's no network connection #19

Closed
wants to merge 1 commit into from
Closed

Do nothing if there's no network connection #19

wants to merge 1 commit into from

Conversation

micalevisk
Copy link

Closes #18

Navigator.onLine returns the online status of the browser. The property returns a boolean value, with true meaning online and false meaning offline. The property sends updates whenever the browser's ability to connect to the network changes. The update occurs when the user follows links or when a script requests a remote page. For example, the property should return false when users click links soon after they lose internet connection. 

Source: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine
@micalevisk
Copy link
Author

this is wrong

@micalevisk micalevisk closed this Oct 3, 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.

Improvement request: disable when there's no network connection
1 participant