mirror of
				https://github.com/EndPwnArchive/cynergy.git
				synced 2024-08-14 22:46:57 +00:00 
			
		
		
		
	strings backwards whoops
This commit is contained in:
		
							parent
							
								
									d45ea24af5
								
							
						
					
					
						commit
						5d5170bdde
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -109,7 +109,7 @@ var new_injector = function () {
 | 
			
		|||
    let latestver = dirlisting.filter(d=>d.indexOf("0.0.") > -1);
 | 
			
		||||
    let mainScreen = _fs.readFileSync(`${data()}/${latestver[latestver.length-1]}/modules/discord_desktop_core/app/mainScreen.js`);
 | 
			
		||||
 | 
			
		||||
    mainScreen = mainScreen.write(`  // Thank you for using Cynergy c:\n  mainWindow.webContents.on('dom-ready', function () {require('${data().replace(/\\/g,"/") + '/cynergy/i.js'}').x(mainWindow)});`, mainScreen.indexOf("  // TODO: why do we listen to this?\n  mainWindow.webContents.on('dom-ready', function () {});"));
 | 
			
		||||
    mainScreen = mainScreen.write("  // TODO: why do we listen to this?\n  mainWindow.webContents.on('dom-ready', function () {});", mainScreen.indexOf(`  // Thank you for using Cynergy c:\n  mainWindow.webContents.on('dom-ready', function () {require('${data().replace(/\\/g,"/") + '/cynergy/i.js'}').x(mainWindow)});`));
 | 
			
		||||
 | 
			
		||||
    _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