v8: agent logos on idle, transparent backgrounds, fix PI settings persistence
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user