Fix dashboard theme initialization order

This commit is contained in:
Mikei386
2026-09-29 22:53:29 +02:00
parent e63a8aa76f
commit 36e1883657
+1 -1
View File
@@ -1,5 +1,6 @@
const DashboardUI=(()=>{
let host=null,root=null,timers=[],controller=null;
let historyColors=['#c5edaf','#ffb454','#7fc8b6','#c39bff'];
const esc=v=>String(v??'–').replace(/[&<>"']/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));
const pct=n=>n==null?'–':`${Number(n).toFixed(1)}%`;
const gib=b=>b==null?'–':`${(Number(b)/1073741824).toFixed(1)} GiB`;
@@ -123,7 +124,6 @@ refreshFull();timers.push(setInterval(()=>{if(host?.isConnected)refreshFull();el
let historyRange='24h',usageMode='total',lastProfileUsage=[];
let historyColors=['#c5edaf','#ffb454','#7fc8b6','#c39bff'];
const hiddenHistorySeries=new Set();let lastHistoryPoints=[];
const hiddenSlotSeries=new Set();let lastSlotPoints=[];
function drawHistory(points){