SyntaxFix
Write A Post
Hire A Developer
Questions
Just use navigator.onLine if this is true then you're online else offline
navigator.onLine
true