blackberry/WebWorks-API-Docs

Document the navigator.onLine property and online/offline events

kwallis opened this issue · 0 comments

In lieu of implementing online/offline events in WebWorks, we can leverage the browser built-in capabilities.

navigator.onLine will return the current state of internet connectivity.

window.addEventListener/removeEventListener with the online/offline events.

blackberry-webworks/BB10-Webworks-API#20 (comment)

For reference: https://developer.mozilla.org/en/Online_and_offline_events