Last active
September 12, 2016 03:12
-
-
Save washingtonsoares/4b435ac78e75702ab90498572207041a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('online', networkStatus); | |
window.addEventListener('offline', networkStatus); | |
function networkStatus(e){ | |
console.log(e.type); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment