Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Nov 22, 2024
1 parent d59829d commit 718fda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/downloads.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 718fda2

Please sign in to comment.