refactor: move to data

This commit is contained in:
Barış Soner Uşaklı
2026-03-12 13:27:18 -04:00
parent dde2465811
commit 36bf3f16ca

View File

@@ -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)],
});
});