mirror of
				https://github.com/EndPwnArchive/cynergy.git
				synced 2024-08-14 22:46:57 +00:00 
			
		
		
		
	add back dom-ready now
This commit is contained in:
		
							parent
							
								
									cf307a9aba
								
							
						
					
					
						commit
						d2c46a73c5
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -110,6 +110,7 @@ var new_injector = function () {
 | 
			
		|||
    let mainScreen = _fs.readFileSync(`${data()}/${latestver[latestver.length-1]}/modules/discord_desktop_core/app/mainScreen.js`).toString();
 | 
			
		||||
 | 
			
		||||
    mainScreen = mainScreen.replace("mainWindow.webContents.on('dom-ready', function () {});",`mainWindow.webContents.on('dom-ready', function () {require('../../../../cynergy/i.js').x(mainWindow)});`);
 | 
			
		||||
    mainScreen = mainScreen.replace("// Prevent navigation when links or files are dropping into the app, turning it into a browser.","\n//thanks discord ily /s\nmainWindow.webContents.on('dom-ready', function () {require('../../../../cynergy/i.js').x(mainWindow)});\n\n// Prevent navigation when links or files are dropping into the app, turning it into a browser.");
 | 
			
		||||
 | 
			
		||||
    _fs.writeFileSync(`${data()}/${latestver[latestver.length-1]}/modules/discord_desktop_core/app/mainScreen.js`,mainScreen);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue