mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Make invite websocket togglable
This commit is contained in:
		
							parent
							
								
									37966b985a
								
							
						
					
					
						commit
						7a7dd05163
					
				
					 4 changed files with 18 additions and 6 deletions
				
			
		|  | @ -46,7 +46,9 @@ | |||
|                         minimizeToTray: true, | ||||
|                         automaticPatches: false, | ||||
|                         mods: "cumcord", | ||||
|                         blurType: "acrylic" | ||||
|                         blurType: "acrylic", | ||||
|                         inviteWebsocket: true, | ||||
|                         doneSetup: true | ||||
|                     }); | ||||
|                     fade(document.getElementById("setup")); | ||||
|                     setTimeout(function () { | ||||
|  | @ -98,7 +100,9 @@ | |||
|                                     minimizeToTray: true, | ||||
|                                     automaticPatches: false, | ||||
|                                     mods: mod, | ||||
|                                     blurType: "acrylic" | ||||
|                                     blurType: "acrylic", | ||||
|                                     inviteWebsocket: true, | ||||
|                                     doneSetup: true | ||||
|                                 }); | ||||
|                                 fade(document.getElementById("setup")); | ||||
|                                 setTimeout(function () { | ||||
|  | @ -113,7 +117,9 @@ | |||
|                                 minimizeToTray: true, | ||||
|                                 automaticPatches: false, | ||||
|                                 mods: "none", | ||||
|                                 blurType: "acrylic" | ||||
|                                 blurType: "acrylic", | ||||
|                                 inviteWebsocket: true, | ||||
|                                 doneSetup: true | ||||
|                             }); | ||||
|                             fade(document.getElementById("setup")); | ||||
|                             setTimeout(function () { | ||||
|  |  | |||
|  | @ -74,7 +74,9 @@ | |||
|                 minimizeToTray: document.getElementById("tray").checked, | ||||
|                 automaticPatches: document.getElementById("patches").checked, | ||||
|                 mods: document.getElementById("mod").value, | ||||
|                 blurType: "acrylic" | ||||
|                 blurType: "acrylic", | ||||
|                 inviteWebsocket: true, | ||||
|                 doneSetup: true | ||||
|             }); | ||||
|         }); | ||||
|     </script> | ||||
|  |  | |||
|  | @ -41,6 +41,7 @@ export function setup() { | |||
|         automaticPatches: false, | ||||
|         mods: "cumcord", | ||||
|         blurType: "acrylic", | ||||
|         inviteWebsocket: true, | ||||
|         doneSetup: false | ||||
|     }; | ||||
|     setConfigBulk({ | ||||
|  | @ -72,6 +73,7 @@ export interface Settings { | |||
|     automaticPatches: boolean; | ||||
|     mods: string; | ||||
|     blurType: string; | ||||
|     inviteWebsocket: boolean; | ||||
|     doneSetup: boolean; | ||||
| } | ||||
| export async function getConfig(object: string) { | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ contextMenu({ | |||
|     showSearchWithGoogle: true | ||||
| }); | ||||
| 
 | ||||
| function doAfterDefiningTheWindow() { | ||||
| async function doAfterDefiningTheWindow() { | ||||
|     checkIfConfigIsBroken(); | ||||
|     registerIpc(); | ||||
|     mainWindow.webContents.userAgent = | ||||
|  | @ -40,7 +40,9 @@ function doAfterDefiningTheWindow() { | |||
|         } | ||||
|     }); | ||||
|     console.log(contentPath); | ||||
|     if (await getConfig("inviteWebsocket") == true) { | ||||
|         startServer() | ||||
|     } | ||||
|     try { | ||||
|         mainWindow.loadFile(contentPath); | ||||
|     } catch (e) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue