Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Guard phone theme setup before the document root exists

pulse-triage[bot]691ced6926f3
diff --git a/frontend-modern/browser-tests/pbs-capacity.cjs b/frontend-modern/browser-tests/pbs-capacity.cjs
index 5ba31895d6..68eba42afd 100644
--- a/frontend-modern/browser-tests/pbs-capacity.cjs
+++ b/frontend-modern/browser-tests/pbs-capacity.cjs
@@ -52,7 +52,7 @@ const runtime = [
hasTouch: phone,
colorScheme: phone ? 'dark' : 'light',
});
- if (phone) await page.addInitScript(() => document.documentElement.classList.add('dark'));
+ if (phone) await page.addInitScript(() => document.documentElement?.classList.add('dark'));
page.setDefaultTimeout(20000);
await page.clock.setFixedTime(new Date('2026-10-04T12:00:00Z'));
const errors = [],