will now write id to theme.json

This commit is contained in:
booploops 2022-02-28 22:50:31 -08:00
parent e125060fab
commit 3f9bb100d7

View file

@ -613,6 +613,7 @@ export class BrowserWindow {
let theme = JSON.parse( let theme = JSON.parse(
readFileSync(join(utils.getPath("themes"), "gh_" + apiRepo.id, "theme.json"), "utf8") readFileSync(join(utils.getPath("themes"), "gh_" + apiRepo.id, "theme.json"), "utf8")
); );
theme.id = apiRepo.id
theme.commit = commit[0].sha; theme.commit = commit[0].sha;
writeFileSync( writeFileSync(
join(utils.getPath("themes"), "gh_" + apiRepo.id, "theme.json"), join(utils.getPath("themes"), "gh_" + apiRepo.id, "theme.json"),