is-online
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -12,3 +12,3 @@ /* eslint-env browser */ | ||
if (navigator && navigator.onLine === false) { | ||
if (navigator && !navigator.onLine) { | ||
return false; | ||
@@ -15,0 +15,0 @@ } |
@@ -27,3 +27,3 @@ declare namespace isOnline { | ||
When the first check succeeds, the returned Promise is resolved to `true`. | ||
When any check succeeds, the returned Promise is resolved to `true`. | ||
@@ -30,0 +30,0 @@ @example |
{ | ||
"name": "is-online", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "Check if the internet connection is up", | ||
@@ -53,3 +53,3 @@ "license": "MIT", | ||
"p-timeout": "^3.2.0", | ||
"public-ip": "^4.0.2" | ||
"public-ip": "^4.0.4" | ||
}, | ||
@@ -56,0 +56,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
# is-online [![Build Status](https://travis-ci.com/sindresorhus/is-online.svg?branch=master)](https://travis-ci.com/github/sindresorhus/is-online) | ||
# is-online | ||
@@ -57,3 +57,3 @@ > Check if the internet connection is up | ||
When the first check succeeds, the returned Promise is resolved to `true`. | ||
When any check succeeds, the returned Promise is resolved to `true`. | ||
@@ -60,0 +60,0 @@ ## Proxy support |
7320
Updatedpublic-ip@^4.0.4