fix: missing function declaration for addCamera
This commit is contained in:
parent
1942c2bb35
commit
7ebeb73f62
1 changed files with 3 additions and 0 deletions
|
|
@ -315,6 +315,9 @@ function toggleAdv(btn) {
|
|||
adv.classList.toggle('hidden');
|
||||
btn.textContent = adv.classList.contains('hidden') ? '▸ Advanced' : '▾ Advanced';
|
||||
}
|
||||
|
||||
// ── Settings: Add / Remove cameras ──
|
||||
function addCamera() {
|
||||
const ip = prompt('Camera IP address:', '192.168.1.');
|
||||
if (!ip) return;
|
||||
const id = 'cam_' + ip.split('.').pop();
|
||||
|
|
|
|||
Loading…
Reference in a new issue