From 7ebeb73f621757ff57b2cce9c0c98b16d6ba81f0 Mon Sep 17 00:00:00 2001 From: cclohmar Date: Thu, 6 Aug 2026 17:54:05 +0100 Subject: [PATCH] fix: missing function declaration for addCamera --- public/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app.js b/public/app.js index 0d7346d..8893b12 100644 --- a/public/app.js +++ b/public/app.js @@ -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();