From 718fda23aaaa29805100b29c9804e76b87b74100 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 21 Nov 2024 21:18:42 -0800 Subject: [PATCH] fix --- routes/downloads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/downloads.js b/routes/downloads.js index f7848ab..222c288 100644 --- a/routes/downloads.js +++ b/routes/downloads.js @@ -143,7 +143,7 @@ router.get('/json/:device', async function (req, res, next) { .map(category => latestDownloads[category]?.version) .find(version => version) || 'unknown'; // capitalize first letter of device - const deviceLabel = string.charAt(0).toUpperCase() + string.slice(1); + const deviceLabel = device.charAt(0).toUpperCase() + device.slice(1); // build a github badge.io badge compatible json object to return return res.json({ schemaVersion: 1,