mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Fix setup not working, css additions
This commit is contained in:
		
							parent
							
								
									61104a166e
								
							
						
					
					
						commit
						97e8fb5e69
					
				
					 2 changed files with 9 additions and 1 deletions
				
			
		|  | @ -10,3 +10,6 @@ | ||||||
| .notice-2HEN-u { | .notice-2HEN-u { | ||||||
|     display: none; |     display: none; | ||||||
| } | } | ||||||
|  | .sidebar-1tnWFu { | ||||||
|  |     border-top-left-radius: 8px !important; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | @ -83,7 +83,7 @@ export async function getConfig(object: string) { | ||||||
|         const settingsFile = storagePath + "settings.json"; |         const settingsFile = storagePath + "settings.json"; | ||||||
|         let rawdata = fs.readFileSync(settingsFile, "utf-8"); |         let rawdata = fs.readFileSync(settingsFile, "utf-8"); | ||||||
|         let returndata = JSON.parse(rawdata); |         let returndata = JSON.parse(rawdata); | ||||||
|         console.log(returndata[object]); |         console.log(object + ": " + returndata[object]); | ||||||
|         return returndata[object]; |         return returndata[object]; | ||||||
|     } catch (e) { |     } catch (e) { | ||||||
|         console.log("Config probably doesn't exist yet. Returning setup value."); |         console.log("Config probably doesn't exist yet. Returning setup value."); | ||||||
|  | @ -124,7 +124,12 @@ export async function checkIfConfigExists() { | ||||||
|     const userDataPath = app.getPath("userData"); |     const userDataPath = app.getPath("userData"); | ||||||
|     const storagePath = path.join(userDataPath, "/storage/"); |     const storagePath = path.join(userDataPath, "/storage/"); | ||||||
|     const settingsFile = storagePath + "settings.json"; |     const settingsFile = storagePath + "settings.json"; | ||||||
|  |      | ||||||
|     if (!fs.existsSync(settingsFile)) { |     if (!fs.existsSync(settingsFile)) { | ||||||
|  |         if (!fs.existsSync(storagePath)) { | ||||||
|  |             fs.mkdirSync(storagePath); | ||||||
|  |             console.log("Created missing storage folder"); | ||||||
|  |         } | ||||||
|         console.log("First run of the ArmCord. Starting setup."); |         console.log("First run of the ArmCord. Starting setup."); | ||||||
|         setup(); |         setup(); | ||||||
|         contentPath = path.join(__dirname, "/content/setup.html"); |         contentPath = path.join(__dirname, "/content/setup.html"); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue