mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Fix theme loading
This commit is contained in:
		
							parent
							
								
									9985c8cabe
								
							
						
					
					
						commit
						5e10467bf7
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -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(); | ||||
|  |  | |||
|  | @ -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 { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue