Update top-langs.js

This commit is contained in:
Zohan Subhash
2023-01-15 15:57:10 +05:30
committed by GitHub
parent ede2574b13
commit 6738c6db5f
+1 -1
View File
@@ -28,7 +28,7 @@ export default async (req, res) => {
res.setHeader("Content-Type", "image/svg+xml");
try {
const topLangs = req.query.top_langs.split(",") || [
const topLangs = req.query.top_langs ? req.query.top_langs.split(",") : [
{
name: "Javascript",
size: 50,