navigator.onLine method added
nano