Remove configuration remote update

Change-type: patch
This commit is contained in:
Edwin Joassart
2023-02-01 15:05:27 +01:00
parent 1bc64bbaf8
commit 85a49a221f
5 changed files with 12 additions and 44 deletions

View File

@@ -32,16 +32,6 @@ export function percentageToFloat(percentage: any) {
return percentage / 100;
}
/**
* @summary Get etcher configs stored online
* @param {String} - url where config.json is stored
*/
export async function getConfig(configUrl?: string): Promise<Dictionary<any>> {
configUrl = configUrl ?? 'https://balena.io/etcher/static/config.json';
const response = await axios.get(configUrl, { responseType: 'json' });
return response.data;
}
export async function delay(duration: number): Promise<void> {
await new Promise((resolve) => {
setTimeout(resolve, duration);