Fix theme loading

This commit is contained in:
smartfridge 2021-05-21 19:27:32 +02:00
parent 9985c8cabe
commit 5e10467bf7
2 changed files with 3 additions and 3 deletions

View file

@ -2,13 +2,13 @@ const customTitlebar = require("custom-electron-titlebar");
const electronLocalshortcut = require("electron-localshortcut");
const { remote } = require("electron");
const ArmCord = require("./utils/ArmCord.js");
require("./utils/theme.js");
window.addEventListener("DOMContentLoaded", () => {
new customTitlebar.Titlebar({
backgroundColor: customTitlebar.Color.fromHex("#202225"),
menu: false,
});
require("./utils/theme.js");
const currentWindow = remote.getCurrentWindow();
electronLocalshortcut.register(currentWindow, "F5", () => {
location.reload();

View file

@ -1,8 +1,8 @@
const fs = require("fs");
const armcord = require("./armcord.js");
const themeFolder = __dirname + "/themes/";
console.log("Theme Module Loaded")
window.addEventListener("DOMContentLoaded", () => {
console.log("Theme Module Loaded");
fs.readdirSync(themeFolder).forEach((file) => {
console.log(file);
try {