From 70a0e746bea86b3e78e8b0c999f24fabf73e049b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 21 Oct 2021 00:20:45 +0200 Subject: Favicon stuff. --- public/apple-touch-icon.png | Bin 0 -> 4035 bytes public/favicon.ico | Bin 0 -> 15086 bytes public/favicon.svg | 6 ++++++ server.js | 4 ---- views/header.ejs | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 public/apple-touch-icon.png create mode 100644 public/favicon.ico create mode 100644 public/favicon.svg diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..40c8f2e Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..7822ec2 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..48d6553 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,6 @@ + + + + diff --git a/server.js b/server.js index e69a5f7..4e7f0aa 100644 --- a/server.js +++ b/server.js @@ -285,10 +285,6 @@ function must_be_logged_in(req, res, next) { return next(); } -app.get('/favicon.ico', function (req, res) { - res.status(204).send(); -}); - app.get('/about', function (req, res) { res.render('about.ejs', { user: req.user }); }); diff --git a/views/header.ejs b/views/header.ejs index 3af1a8b..b430c25 100644 --- a/views/header.ejs +++ b/views/header.ejs @@ -3,7 +3,7 @@ <% if (typeof refresh !== 'undefined' && refresh > 0) { %><% } %> - + <%= title %> -- cgit v1.2.3