add temp fix for long disk size change issue

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-30 23:43:00 +00:00
parent e5601f9f3a
commit f3c46f6f07

View File

@ -1,7 +1,12 @@
import {requestPVE, requestAPI, goToPage, getURIData, reload, resources} from "./utils.js";
import { Dialog } from "./elements.js";
window.addEventListener("DOMContentLoaded", init);
setInterval(async () => {
await getConfig();
populateDisk();
}, 1000);
window.addEventListener("DOMContentLoaded", init); // do the dumb thing where the disk config refreshes every second
let diskMetaData = resources.disk;