diff --git a/routes/downloads.js b/routes/downloads.js index 78e7d79..52c38ce 100644 --- a/routes/downloads.js +++ b/routes/downloads.js @@ -51,6 +51,8 @@ router.get('/', async function(req, res, next) { res.render('downloads', { title: 'Vortex Downloads', latestDownloads: latestDownloads, + categories: categories, + devices: devices, req: req }); } catch (err) { diff --git a/views/downloads.ejs b/views/downloads.ejs index d74b8ad..e85839c 100644 --- a/views/downloads.ejs +++ b/views/downloads.ejs @@ -12,7 +12,7 @@ Visit Vortex Wiki - <% ['gloves', 'orbit', 'handle', 'spark', 'chromadeck', 'duo'].forEach(device => { %> + <% devices.forEach(device => { %> <% if (latestDownloads[device] && latestDownloads[device]['firmware']) { %>