File tree Expand file tree Collapse file tree
packages/jsActions/nanoflow-actions-native/src/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,24 +15,24 @@ import { Big } from "big.js";
1515 * @returns {Promise.<boolean> }
1616 */
1717export 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}
You can’t perform that action at this time.
0 commit comments