Compare commits

...
Author SHA1 Message Date
Zohan Subhash d0cb83cfd2 Update wakatime.js 2023-03-01 13:03:51 +05:30
Zohan Subhash 7b87177734 Update top-langs.js 2023-03-01 13:03:38 +05:30
Zohan Subhash 7e30ca6cc0 Update pin.js 2023-03-01 13:03:26 +05:30
Zohan Subhash 22a201df41 Update index.js 2023-03-01 13:02:52 +05:30
4 changed files with 8 additions and 0 deletions
+2
View File
@@ -46,6 +46,8 @@ export default async (req, res) => {
if (locale && !isLocaleAvailable(locale)) { if (locale && !isLocaleAvailable(locale)) {
return res.send(renderError("Something went wrong", "Language not found")); return res.send(renderError("Something went wrong", "Language not found"));
} }
theme = theme.replace(/-/g, "_")
try { try {
const stats = await fetchStats( const stats = await fetchStats(
+2
View File
@@ -35,6 +35,8 @@ export default async (req, res) => {
if (locale && !isLocaleAvailable(locale)) { if (locale && !isLocaleAvailable(locale)) {
return res.send(renderError("Something went wrong", "Language not found")); return res.send(renderError("Something went wrong", "Language not found"));
} }
theme = theme.replace(/-/g, "_")
try { try {
const repoData = await fetchRepo(username, repo); const repoData = await fetchRepo(username, repo);
+2
View File
@@ -41,6 +41,8 @@ export default async (req, res) => {
if (locale && !isLocaleAvailable(locale)) { if (locale && !isLocaleAvailable(locale)) {
return res.send(renderError("Something went wrong", "Locale not found")); return res.send(renderError("Something went wrong", "Locale not found"));
} }
theme = theme.replace(/-/g, "_")
try { try {
const topLangs = await fetchTopLanguages( const topLangs = await fetchTopLanguages(
+2
View File
@@ -38,6 +38,8 @@ export default async (req, res) => {
if (locale && !isLocaleAvailable(locale)) { if (locale && !isLocaleAvailable(locale)) {
return res.send(renderError("Something went wrong", "Language not found")); return res.send(renderError("Something went wrong", "Language not found"));
} }
theme = theme.replace(/-/g, "_")
try { try {
const stats = await fetchWakatimeStats({ username, api_domain, range }); const stats = await fetchWakatimeStats({ username, api_domain, range });