mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Fix corrupted config checker
This commit is contained in:
		
							parent
							
								
									1a461e9a32
								
							
						
					
					
						commit
						40239159ed
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -5,7 +5,7 @@ | ||||||
| import {BrowserWindow, shell, app, ipcMain, dialog} from "electron"; | import {BrowserWindow, shell, app, ipcMain, dialog} from "electron"; | ||||||
| import path from "path"; | import path from "path"; | ||||||
| import {contentPath} from "./main"; | import {contentPath} from "./main"; | ||||||
| import {checkIfConfigIsNew, firstRun, getConfigUnsafe} from "./utils"; | import {checkIfConfigIsBroken, firstRun, getConfigUnsafe} from "./utils"; | ||||||
| import {registerIpc} from "./ipc"; | import {registerIpc} from "./ipc"; | ||||||
| import contextMenu from "electron-context-menu"; | import contextMenu from "electron-context-menu"; | ||||||
| export let mainWindow: BrowserWindow; | export let mainWindow: BrowserWindow; | ||||||
|  | @ -18,7 +18,7 @@ contextMenu({ | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| function doAfterDefiningTheWindow() { | function doAfterDefiningTheWindow() { | ||||||
|     checkIfConfigIsNew(); |     checkIfConfigIsBroken(); | ||||||
|     registerIpc(); |     registerIpc(); | ||||||
|     mainWindow.webContents.userAgent = |     mainWindow.webContents.userAgent = | ||||||
|         "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"; //fake useragent for screenshare to work
 |         "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"; //fake useragent for screenshare to work
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue