Browse Source

Fix protocol status badge not updating for active service with id 0

develop
Alice Gaudon 3 months ago
parent
commit
79b79e0aec
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      frontend/ts/index.ts

+ 2
- 1
frontend/ts/index.ts View File

@ -772,7 +772,8 @@ function updateNavigation() {
}
function updateStatusButton() {
if (!selectedServiceId) return;
if (typeof selectedServiceId !== 'number') return;
const protocol = services[selectedServiceId]?.view?.getURL().split('://')[0] || 'unknown';
securityButton?.childNodes.forEach(el => {
if (el instanceof HTMLElement) {


Loading…
Cancel
Save