Skip to content

Commit

Permalink
(simatec) Beta 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec committed Apr 27, 2023
1 parent 8080469 commit d11f5c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ const data_dataPoints = {
};

async function requestLocalAPI() {
return new Promise(async (resolve, reject) => {
return new Promise(async (resolve) => {
try {
const cancelToken = axios.CancelToken;
const source = cancelToken.source();
Expand Down Expand Up @@ -670,7 +670,8 @@ async function requestLocalAPI() {
} else {
offlineCounter++;
}
reject();
// @ts-ignore
resolve();
}

if (requestTimeOut) clearTimeout(requestTimeOut);
Expand Down

0 comments on commit d11f5c2

Please sign in to comment.