From 211497b32f3d0a2f2f4851a3544d513b7c3f4e52 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Thu, 24 Feb 2022 00:21:33 -0800 Subject: [PATCH] made full_names neutral with lowercase --- src/renderer/views/pages/themes-github.ejs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/renderer/views/pages/themes-github.ejs b/src/renderer/views/pages/themes-github.ejs index c8049f0b..dab29652 100644 --- a/src/renderer/views/pages/themes-github.ejs +++ b/src/renderer/views/pages/themes-github.ejs @@ -105,6 +105,7 @@ // for each theme, get the github_repo property and push it to the themesInstalled array, if not blank themes.forEach(theme => { if (theme.github_repo !== "") { + theme.github_repo = theme.github_repo.toLowerCase() self.themesInstalled.push(theme.github_repo) } }) @@ -144,6 +145,7 @@ ipcRenderer.once("theme-installed", (event, arg) => { if (arg.success) { self.themes = ipcRenderer.sendSync("get-themes") + self.getInstalledThemes() notyf.success(app.getLz('settings.notyf.visual.theme.install.success')); } else { notyf.error(app.getLz('settings.notyf.visual.theme.install.error')); @@ -179,7 +181,11 @@ fetch("https://api.github.com/search/repositories?q=topic:cidermusictheme fork:true", requestOptions) .then(response => response.text()) .then(result => { - self.repos = JSON.parse(result).items + let items = JSON.parse(result).items + items.forEach(repo => { + repo.full_name = repo.full_name.toLowerCase() + }) + self.repos = items }) .catch(error => console.log('error', error)); }