mirror of
				https://github.com/EndPwnArchive/cynergy.git
				synced 2024-08-14 22:46:57 +00:00 
			
		
		
		
	contains -> indexOf
This commit is contained in:
		
							parent
							
								
									6d1ab8130f
								
							
						
					
					
						commit
						31441b6a73
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -106,7 +106,7 @@ var endpoint_restore = function () {
 | 
			
		|||
var new_injector = function () {
 | 
			
		||||
    //Until they remove this listener, we'll be replacing it for now, later we'll readd it.
 | 
			
		||||
    let dirlisting = _fs.readdirSync(data());
 | 
			
		||||
    let latestver = dirlisting.filter(d=>d.contains("0.0."));
 | 
			
		||||
    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.replace("  // TODO: why do we listen to this?\n  mainWindow.webContents.on('dom-ready', function () {});","  // Thank you for using Cynergy c:\n  mainWindow.webContents.on('dom-ready', function () {require('${data().replace(/\\/g,"/") + '/cynergy/i.js'}').x(mainWindow)});");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue