mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Remove additional logging from plugin/theme loading, fix one grammar mistake
This commit is contained in:
		
							parent
							
								
									3f7cade6f2
								
							
						
					
					
						commit
						57c40ffa4f
					
				
					 2 changed files with 1 additions and 6 deletions
				
			
		|  | @ -37,7 +37,7 @@ if (!fs.existsSync(pluginFolder)) { | ||||||
|     electron.dialog.showMessageBox({ |     electron.dialog.showMessageBox({ | ||||||
|       title: "ArmCord", |       title: "ArmCord", | ||||||
|       type: "warning", |       type: "warning", | ||||||
|       message: "ArmCord installed GooseMod onto your client.", |       message: "ArmCord has installed GooseMod onto your client.", | ||||||
|       detail: |       detail: | ||||||
|         "If you wish to use it restart your ArmCord completely using tray icon. It should appear in next session. GooseMod is reccomended to every user of ArmCord due to various improvements and bugfixes it ships with.", |         "If you wish to use it restart your ArmCord completely using tray icon. It should appear in next session. GooseMod is reccomended to every user of ArmCord due to various improvements and bugfixes it ships with.", | ||||||
|     }); |     }); | ||||||
|  | @ -49,14 +49,12 @@ if (!fs.existsSync(pluginFolder)) { | ||||||
| } | } | ||||||
| app.whenReady().then(() => { | app.whenReady().then(() => { | ||||||
| fs.readdirSync(pluginFolder).forEach((file) => { | fs.readdirSync(pluginFolder).forEach((file) => { | ||||||
|   console.log(file); |  | ||||||
|   try { |   try { | ||||||
|     const manifest = fs.readFileSync( |     const manifest = fs.readFileSync( | ||||||
|       `${userDataPath}/plugins/${file}/manifest.json`, |       `${userDataPath}/plugins/${file}/manifest.json`, | ||||||
|       "utf8" |       "utf8" | ||||||
|     ); |     ); | ||||||
|     var pluginFile = JSON.parse(manifest); |     var pluginFile = JSON.parse(manifest); | ||||||
|     console.log(pluginFile); |  | ||||||
|     session.defaultSession.loadExtension(`${userDataPath}/plugins/${file}`); |     session.defaultSession.loadExtension(`${userDataPath}/plugins/${file}`); | ||||||
|     console.log( |     console.log( | ||||||
|       `%cLoaded ${pluginFile.name} made by ${pluginFile.author}`, |       `%cLoaded ${pluginFile.name} made by ${pluginFile.author}`, | ||||||
|  |  | ||||||
|  | @ -11,12 +11,9 @@ if (!fs.existsSync(themeFolder)) { | ||||||
| window.addEventListener("DOMContentLoaded", () => { | window.addEventListener("DOMContentLoaded", () => { | ||||||
|   console.log("Theme Module Loaded"); |   console.log("Theme Module Loaded"); | ||||||
|   fs.readdirSync(themeFolder).forEach((file) => { |   fs.readdirSync(themeFolder).forEach((file) => { | ||||||
|     console.log(file); |  | ||||||
|     try { |     try { | ||||||
|       const manifest = fs.readFileSync(`${userDataPath}/themes/${file}/manifest.json`, "utf8"); |       const manifest = fs.readFileSync(`${userDataPath}/themes/${file}/manifest.json`, "utf8"); | ||||||
|       var themeFile = JSON.parse(manifest); |       var themeFile = JSON.parse(manifest); | ||||||
|       console.log(themeFile.theme); |  | ||||||
|       console.log(themeFile) |  | ||||||
|       const theme = fs.readFileSync(`${userDataPath}/themes/${file}/${themeFile.theme}`, "utf8"); |       const theme = fs.readFileSync(`${userDataPath}/themes/${file}/${themeFile.theme}`, "utf8"); | ||||||
|       if (themeFile.theme.endsWith(".scss")) { |       if (themeFile.theme.endsWith(".scss")) { | ||||||
|         console.log( |         console.log( | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue