Skip to content

Commit d718c85

Browse files
committed
re-add console and linter errors
1 parent 72bcb53 commit d718c85

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

packages/jsActions/nanoflow-actions-native/src/client/IsConnectedToServer.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ import { Big } from "big.js";
1515
* @returns {Promise.<boolean>}
1616
*/
1717
export async function IsConnectedToServer() {
18-
// BEGIN USER CODE
18+
// BEGIN USER CODE
1919
try {
2020
const headers = new Headers();
2121
headers.append("Content-Type", "application/json");
22-
const body = JSON.stringify({ "action": "info" });
22+
const body = JSON.stringify({ action: "info" });
2323

2424
const requestOptions = {
25-
method: 'POST',
25+
method: "POST",
2626
headers,
27-
body,
27+
body
2828
};
2929

3030
// mx.remoteUrl always has / at the end, therefore we don't add it.
3131
const response = await fetch(`${mx.remoteUrl}xas/`, requestOptions);
3232
return response.ok;
33-
}
34-
catch (err) {
33+
} catch (err) {
34+
console.error(err);
3535
return false;
3636
}
37-
// END USER CODE
37+
// END USER CODE
3838
}

0 commit comments

Comments
 (0)