From f3c46f6f0764f9d27f1db589253b446036c84cc8 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 30 Jan 2023 23:43:00 +0000 Subject: [PATCH] add temp fix for long disk size change issue Signed-off-by: Arthur Lu --- scripts/config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 2ee147b..c76a7d4 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -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;