Dashboard pages: iOS icon + Home Screen title everywhere; root icon fallbacks
Publish Container / publish (push) Successful in 2m11s
Publish Container / publish (push) Successful in 2m11s
- setup/recover/settings pages now declare the dashboard touch icon and 'Station' title - /apple-touch-icon.png, /apple-touch-icon-precomposed.png and /favicon.ico serve real icons (iOS falls back to these when a page declares none; they used to 404/204) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
023e6cb03c
commit
19479daece
5 files changed
+17
-3
No files matched your search
+4
-3
@@ -637,9 +637,10 @@ app.use('/', (req, res, next) => {
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
|
||||
// Prevent browser favicon requests from showing noisy 404s.
|
||||
app.get('/favicon.ico', (_req, res) => {
|
||||
res.status(204).end();
|
||||
});
|
||||
// Icons iOS and browsers request from the site root when a page doesn't declare one
|
||||
const ICON_DIR = path.join(__dirname, 'public', 'icons');
|
||||
app.get(['/apple-touch-icon.png', '/apple-touch-icon-precomposed.png'], (_req, res) => res.sendFile(path.join(ICON_DIR, 'apple-touch-icon.png')));
|
||||
app.get('/favicon.ico', (_req, res) => res.sendFile(path.join(ICON_DIR, 'icon-192.png')));
|
||||
|
||||
// Geocoding proxy
|
||||
app.get('/api/geocode', async (req, res) => {
|
||||
|
||||
Reference in new issue
Block a user