mirror of
				https://github.com/EndPwnArchive/endpwn3.git
				synced 2024-08-15 00:23:30 +00:00 
			
		
		
		
	possible fix for fresh installs
This commit is contained in:
		
							parent
							
								
									e3c07eb5c2
								
							
						
					
					
						commit
						ce6280459d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -59,7 +59,7 @@
 | 
			
		|||
                }
 | 
			
		||||
 | 
			
		||||
                // install endpwn 
 | 
			
		||||
                var o = JSON.parse(fs.readFileSync(data + '/settings.json', 'utf8'));   // load settings.json
 | 
			
		||||
                var o = fs.existsSync(data + '/settings.json') ? JSON.parse(fs.readFileSync(data + '/settings.json', 'utf8')) : {};   // load settings.json
 | 
			
		||||
                o['WEBAPP_ENDPOINT'] = 'https://endpwn.github.io/endpwn3';                      // aim the app at stage 0
 | 
			
		||||
                o['WEBAPP_PATH'] = '/app?_=' + Date.now();                                      // cache busting
 | 
			
		||||
                fs.writeFileSync(data + '/settings.json', JSON.stringify(o, null, 2));  // commit changes to disk
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue