Un-comment-out the window.navigator.onLine check.