diff --git a/src/main.js b/src/main.js index 3ab6bb8..f5db24f 100644 --- a/src/main.js +++ b/src/main.js @@ -1131,6 +1131,25 @@ function handleResize(state) { async function init() { log.info("NetWatch starting"); + // Mobile detection — show a friendly message and bail out early + if (window.innerWidth < 768) { + const app = document.getElementById("app"); + app.innerHTML = ` +
`; + log.info("Mobile viewport detected — skipping monitor startup"); + return; + } + // Probe common gateway IPs to find the local router const gateway = await detectGateway(); const localHosts = [LOCAL_CPE];