Node.js based forum software built for the modern web
refactor: move to data
Barış Soner Uşaklı36bf3f16cad8
diff --git a/src/controllers/404.js b/src/controllers/404.jsindex e049cb4c0e..412676c2e7 100644--- a/src/controllers/404.js+++ b/src/controllers/404.js@@ -69,10 +69,9 @@ exports.send404 = helpers.try(async (req, res) => {}await middleware.buildHeaderAsync(req, res);- const randomIndex = Math.floor(Math.random() * error404Icons.length);res.render('404', {path: validator.escape(path),title: '[[global:404.title]]',- icon: error404Icons[randomIndex],+ icon: error404Icons[Math.floor(Math.random() * error404Icons.length)],});});