From 834783dec39f50ffed69535cc5ac0bc3fa8c0bed Mon Sep 17 00:00:00 2001 From: Brian Krabach Date: Fri, 3 Apr 2026 06:03:21 -0700 Subject: [PATCH] fix: manifest.json path, deprecated meta tag, minor code style --- muxplex/frontend/app.js | 2 +- muxplex/frontend/index.html | 2 +- muxplex/frontend/manifest.json | 3 ++- muxplex/tests/test_frontend_html.py | 8 ++++---- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/muxplex/frontend/app.js b/muxplex/frontend/app.js index 0ff0d1d..e62b230 100644 --- a/muxplex/frontend/app.js +++ b/muxplex/frontend/app.js @@ -2279,7 +2279,7 @@ function bindStaticEventListeners() { }); // Delegated input save with debounce for remote instance URL/name fields - var _remoteDebounceTimer; + let _remoteDebounceTimer; remoteInstancesContainer.addEventListener('input', function(e) { var input = e.target.closest && e.target.closest('.settings-remote-url, .settings-remote-name, .settings-remote-key'); if (!input) return; diff --git a/muxplex/frontend/index.html b/muxplex/frontend/index.html index bf4a8a1..3e1ea4a 100644 --- a/muxplex/frontend/index.html +++ b/muxplex/frontend/index.html @@ -4,7 +4,7 @@ - + diff --git a/muxplex/frontend/manifest.json b/muxplex/frontend/manifest.json index 6912db2..7aba589 100644 --- a/muxplex/frontend/manifest.json +++ b/muxplex/frontend/manifest.json @@ -9,6 +9,7 @@ "theme_color": "#0D1117", "icons": [ {"src": "/pwa-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any"}, - {"src": "/pwa-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any maskable"} + {"src": "/pwa-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable"}, + {"src": "/pwa-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any"} ] } diff --git a/muxplex/tests/test_frontend_html.py b/muxplex/tests/test_frontend_html.py index 2b3e82b..9ae2f4a 100644 --- a/muxplex/tests/test_frontend_html.py +++ b/muxplex/tests/test_frontend_html.py @@ -12,7 +12,7 @@ _SOUP: BeautifulSoup = BeautifulSoup(HTML_PATH.read_text(), "html.parser") def test_html_pwa_meta() -> None: - """apple-mobile-web-app-capable, rel=manifest, theme-color, apple-mobile-web-app-status-bar-style.""" + """mobile-web-app-capable, rel=manifest, theme-color, apple-mobile-web-app-status-bar-style.""" soup = _SOUP # rel=manifest assert soup.find("link", rel="manifest"), "Missing " @@ -20,9 +20,9 @@ def test_html_pwa_meta() -> None: assert soup.find("meta", attrs={"name": "theme-color"}), ( "Missing " ) - # apple-mobile-web-app-capable - assert soup.find("meta", attrs={"name": "apple-mobile-web-app-capable"}), ( - "Missing " + # mobile-web-app-capable (modern replacement for deprecated apple-mobile-web-app-capable) + assert soup.find("meta", attrs={"name": "mobile-web-app-capable"}), ( + "Missing " ) # apple-mobile-web-app-status-bar-style assert soup.find("meta", attrs={"name": "apple-mobile-web-app-status-bar-style"}), (