mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	fix: reload discord if it's unresponsive
This commit is contained in:
		
							parent
							
								
									0329b2ee92
								
							
						
					
					
						commit
						a347fd8fd0
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -209,6 +209,9 @@ function doAfterDefiningTheWindow(passedWindow: BrowserWindow): void { | |||
|     if (!fs.existsSync(`${userDataPath}/disabled.txt`)) { | ||||
|         fs.writeFileSync(path.join(userDataPath, "/disabled.txt"), ""); | ||||
|     } | ||||
|     passedWindow.on("unresponsive", () => { | ||||
|         passedWindow.webContents.reload(); | ||||
|     }); | ||||
|     passedWindow.webContents.on("did-finish-load", () => { | ||||
|         fs.readdirSync(themesFolder).forEach((file) => { | ||||
|             try { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue