Fix ConnectivityChecker to evaluate the response status codes.

This commit is contained in:
pdevq 2021-01-30 00:17:24 -05:00
parent 3786f80dae
commit a5fe53beb2

View File

@ -37,8 +37,12 @@ export default {
method: "HEAD",
cache: "no-store",
})
.then(function () {
.then(function (response) {
if (response.status >= 200 && response.status < 300) {
that.offline = false;
} else {
that.offline = true;
}
})
.catch(function () {
that.offline = true;