I would prefer here to be more explicit navigator.onLine === true