From 86ba1b5b5164517c37f51aa49f8cc34e637ce45a Mon Sep 17 00:00:00 2001 From: clawbot Date: Fri, 27 Feb 2026 02:08:50 -0800 Subject: [PATCH] =?UTF-8?q?remove=20mobile=20block=20=E2=80=94=20replaced?= =?UTF-8?q?=20by=20responsive=20CSS=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mobile-block placeholder from PR #3 is no longer needed now that the UI works on mobile via CSS media queries. Ref #2 --- src/main.js | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/src/main.js b/src/main.js index b99a827..3ab6bb8 100644 --- a/src/main.js +++ b/src/main.js @@ -1128,42 +1128,9 @@ function handleResize(state) { // --- Bootstrap --------------------------------------------------------------- -// --- Mobile Detection -------------------------------------------------------- - -function isMobile() { - // Check both user agent and viewport width for robust detection - const uaMatch = - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent, - ); - const narrowViewport = window.innerWidth <= 768; - return uaMatch || narrowViewport; -} - -function buildMobileUI() { - const app = document.getElementById("app"); - app.innerHTML = ` -
-
-

NetWatch by @sneak

-

Real-time network latency monitor

-
-
-

Not yet available on mobile.

-

Please visit on a desktop browser for the full experience.

-
-
`; -} - async function init() { log.info("NetWatch starting"); - if (isMobile()) { - log.info("Mobile device detected — showing placeholder"); - buildMobileUI(); - return; - } - // Probe common gateway IPs to find the local router const gateway = await detectGateway(); const localHosts = [LOCAL_CPE];