(label, name)
| 17545 | updateElement('pwn-last-switch-value', pwnStatus.last_switch ? formatTimestamp(pwnStatus.last_switch) : 'Never'); |
| 17546 | updateElement('pwn-last-updated', pwnStatus.timestamp ? formatTimestamp(pwnStatus.timestamp) : new Date().toLocaleString()); |
| 17547 | |
| 17548 | const alertBox = document.getElementById('pwn-status-alert'); |
| 17549 | if (alertBox) { |
| 17550 | if (pwnStatus.message) { |
| 17551 | alertBox.className = `mt-4 p-4 rounded-lg border text-sm text-gray-200 ${visuals.alertClass}`; |
| 17552 | alertBox.innerHTML = ` |
no test coverage detected