mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Add F5 to reload
This commit is contained in:
		
							parent
							
								
									533056eaf0
								
							
						
					
					
						commit
						3a77b0067b
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -1,10 +1,18 @@ | |||
| const customTitlebar = require('custom-electron-titlebar') | ||||
| const electronLocalshortcut = require("electron-localshortcut"); | ||||
| const { remote } = require("electron"); | ||||
| 
 | ||||
| window.addEventListener('DOMContentLoaded', () => { | ||||
|   new customTitlebar.Titlebar({ | ||||
|     backgroundColor: customTitlebar.Color.fromHex("#2C2F33"), | ||||
|     unfocusEffect: true, | ||||
|     menu: true, | ||||
|   }); | ||||
| 
 | ||||
| 
 | ||||
| }) | ||||
| const currentWindow = remote.getCurrentWindow(); | ||||
| electronLocalshortcut.register(currentWindow, "F5", () => { | ||||
|   location.reload(); | ||||
| }); | ||||
| require("./utils/capturer.js") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue