Update glances.js
Update API to V4
This commit is contained in:
parent
df4f5ccee5
commit
7e3a4ab026
@ -13,7 +13,7 @@ async function retrieveFromGlancesAPI(privateWidgetOptions, endpoint) {
|
|||||||
throw new Error(errorMessage);
|
throw new Error(errorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
const apiUrl = `${url}/api/3/${endpoint}`;
|
const apiUrl = `${url}/api/4/${endpoint}`;
|
||||||
const headers = {
|
const headers = {
|
||||||
"Accept-Encoding": "application/json",
|
"Accept-Encoding": "application/json",
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user