← back to Re Coverage Dashboard
add inline SVG favicon (route + link) — silences the /favicon.ico 404 (the only console error)
d5ccf435735eb6791daef6e814237d262c018a21 · 2026-08-06 14:01:35 -0700 · Steve Abrams
Files touched
M public/index.htmlM server.js
Diff
commit d5ccf435735eb6791daef6e814237d262c018a21
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Aug 6 14:01:35 2026 -0700
add inline SVG favicon (route + link) — silences the /favicon.ico 404 (the only console error)
---
public/index.html | 1 +
server.js | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/public/index.html b/public/index.html
index 23fb380..435cd6f 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>RE Contact Coverage — liquid progress</title>
+<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='3' fill='%230e1116'/%3E%3Ctext x='8' y='12' font-size='11' text-anchor='middle'%3E%F0%9F%8C%8A%3C/text%3E%3C/svg%3E">
<style>
:root { --bg:#0e1116; --card:#161b22; --line:#232a33; --ink:#e6edf3; --mut:#8b98a6; --acc:#3fb950; --blue:#58a6ff; }
* { box-sizing:border-box; }
diff --git a/server.js b/server.js
index b2ee958..34f2b3b 100755
--- a/server.js
+++ b/server.js
@@ -104,6 +104,11 @@ function postWin(m) {
const AUTH = 'Basic ' + Buffer.from((process.env.COV_USER || 'admin') + ':' + (process.env.COV_PASS || 'DW2024!')).toString('base64');
const server = http.createServer((req, res) => {
if (req.url === '/healthz') { res.end('ok'); return; }
+ if (req.url === '/favicon.ico') { // inline SVG favicon — no 404, no auth needed
+ res.setHeader('Content-Type', 'image/svg+xml');
+ res.end("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect width='16' height='16' rx='3' fill='#0e1116'/><text x='8' y='12' font-size='11' text-anchor='middle'>🌊</text></svg>");
+ return;
+ }
if ((req.headers.authorization || '') !== AUTH) {
res.statusCode = 401; res.setHeader('WWW-Authenticate', 'Basic realm="RE Coverage", charset="UTF-8"');
res.end('Authentication required'); return;
← ca8c4b9 wire own GA4 + FB Pixel (env-driven ids via server-injected
·
back to Re Coverage Dashboard
·
chore: lint (XSS esc fix), refactor (named consts, resilient 2c9331a →