Show Button, when Upgrade Version is available ! (check from the server, the version number
- for debug: added led button to see when is calling the server and the IndexedDb.
This commit is contained in:
@@ -15,6 +15,8 @@ async function sendRequest(url: string, method: string, mydata: any) {
|
||||
request = Api.Delete(url, mydata)
|
||||
else if (method === 'PUT')
|
||||
request = Api.put(url, mydata)
|
||||
else if (method === 'PATCH')
|
||||
request = Api.patch(url, mydata)
|
||||
|
||||
const req: Promise<Types.AxiosSuccess | Types.AxiosError> = request
|
||||
return req
|
||||
|
||||
Reference in New Issue
Block a user