v8: agent logos on idle, transparent backgrounds, fix PI settings persistence

This commit is contained in:
2026-06-18 14:45:42 +08:00
parent ae114159ff
commit c1f35df657
5 changed files with 34 additions and 11 deletions
@@ -8,16 +8,13 @@
const statusDot = document.getElementById('statusDot');
const statusText = document.getElementById('statusText');
// $settings is the SDK-provided settings proxy (auto-persists)
$settings = $settings || {};
function applySettings(settings) {
if (settings.agent) { agentSelect.value = settings.agent; }
if (settings.pollInterval !== undefined) {
if (settings && settings.agent) { agentSelect.value = settings.agent; }
if (settings && settings.pollInterval !== undefined) {
pollSlider.value = settings.pollInterval;
pollVal.textContent = settings.pollInterval + 'ms';
}
if (settings.showHealth !== undefined) {
if (settings && settings.showHealth !== undefined) {
showHealthToggle.checked = settings.showHealth;
}
}