forked from mirrored/github-readme-stats
Update top-langs.js
This commit is contained in:
@@ -29,8 +29,8 @@ export default async (req, res) => {
|
||||
|
||||
try {
|
||||
let topLangs = []
|
||||
if (req.query.top_langs) {
|
||||
const split = req.query.top_langs.split(";");
|
||||
if (req.query.langs) {
|
||||
const split = req.query.langs.split(";");
|
||||
split.forEach(lang => {
|
||||
topLangs.push(JSON.parse(decodeURIComponent(lang)))
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user