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

online/offline can also be used as events and are not covered by caniuse.com (only boolean property is covered) #4633

Open
PrimeLens opened this issue Nov 20, 2018 · 0 comments

Comments

@PrimeLens
Copy link

PrimeLens commented Nov 20, 2018

Steps to Replicate

  1. go to https://caniuse.com/ and in the search field type online
  2. you will see search result for online/offline status boolean
  3. online/offline event is missing

Example usage of event
window.addEventListener('online', function(){console.log('online')});
window.addEventListener('offline', function(){console.log('offline')});
// then turn your wifi on and off and view console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants