Some tweaks to theme loading

This commit is contained in:
smartfridge 2021-05-15 12:35:22 +02:00
parent 6232c01006
commit 45d8b89c9e

View file

@ -10,8 +10,8 @@ window.addEventListener("DOMContentLoaded", () => {
console.log(themeFile.theme);
console.log(themeFile)
const theme = fs.readFileSync(`${__dirname}/themes/${file}/${themeFile.theme}`, "utf8");
armcord.addStyle(theme)
console.log(`Loaded ${themeFile.name} made by ${themeFile.author}`);
armcord.addStyle(theme);
console.log(`%cLoaded ${themeFile.name} made by ${themeFile.author}`, "color:red");
} catch (err) {
console.error(err);
}