implement apply style

This commit is contained in:
Vladimir Mandic
2023-10-12 11:00:27 -04:00
parent 59b51cddf2
commit e2e6648bdb
7 changed files with 14 additions and 7 deletions
-2
View File
@@ -5,14 +5,12 @@ let nvmlTable = null;
async function updateNVML() {
try {
const res = await fetch('/sdapi/v1/nvml');
console.log('HERE1', res);
if (!res.ok) {
clearInterval(nvmlInterval);
nvmlEl.style.display = 'none';
return;
}
const data = await res.json();
console.log('HERE2', data);
if (!data) {
clearInterval(nvmlInterval);
nvmlEl.style.display = 'none';