Update glances.js

Update API to V4
This commit is contained in:
Linecutterx 2024-03-27 11:47:13 +00:00 committed by GitHub
parent df4f5ccee5
commit 7e3a4ab026
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",
}; };