mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Fix cumcord bug
This commit is contained in:
		
							parent
							
								
									8c3abc8cf6
								
							
						
					
					
						commit
						6e12b1baa2
					
				
					 2 changed files with 9 additions and 2 deletions
				
			
		|  | @ -44,7 +44,11 @@ | |||
|     "appId": "com.smartfridge.armcord", | ||||
|     "productName": "ArmCord", | ||||
|     "mac": { | ||||
|       "category": "Network" | ||||
|       "category": "Network", | ||||
|       "extraResources": ["./mods/cumcord/*"] | ||||
|     }, | ||||
|     "win": { | ||||
|       "extraResources": ["./mods/cumcord/*"] | ||||
|     }, | ||||
|     "linux": { | ||||
|       "category": "Network", | ||||
|  |  | |||
|  | @ -1,13 +1,16 @@ | |||
| const { contextBridge, remote, desktopCapturer } = require("electron"); | ||||
| const currentWindow = remote.getCurrentWindow(); | ||||
| const version = require("../package.json").version; | ||||
| contextBridge.exposeInMainWorld("electron", { | ||||
|   window: { | ||||
|     show: () => currentWindow.show(), | ||||
|     hide: () => currentWindow.hide(), | ||||
|     minimize: () => currentWindow.minimize(), | ||||
|     maximize: () => currentWindow.maximize(), | ||||
|     on : () => currentWindow.on(), | ||||
|   }, | ||||
|   version: process.versions.electron, | ||||
|   electron: process.versions.electron, | ||||
|   version: version, | ||||
|   desktopCapturer: desktopCapturer, | ||||
| 
 | ||||
| }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue