mirror of
				https://github.com/EndPwnArchive/endpwn3.git
				synced 2024-08-15 00:23:30 +00:00 
			
		
		
		
	catch me if i fall
This commit is contained in:
		
							parent
							
								
									13412fd1be
								
							
						
					
					
						commit
						792b703145
					
				
					 1 changed files with 11 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -64,15 +64,17 @@
 | 
			
		|||
                o['WEBAPP_PATH'] = '/app?_=' + Date.now();                                      // cache busting
 | 
			
		||||
                fs.writeFileSync(data + '/settings.json', JSON.stringify(o, null, 2));  // commit changes to disk
 | 
			
		||||
 | 
			
		||||
                // install asarpwn3 for crispr
 | 
			
		||||
                if (!window.__crisprloaded)
 | 
			
		||||
                    if (asarinject(
 | 
			
		||||
                        "// App preload script, used to provide a replacement native API now that\n// we turned off node integration.\nvar electron = require('electron'",
 | 
			
		||||
                        "var electron=require('electron');var d=electron.remote.app.getPath('userData')+'/crispr.js';if(require('fs').existsSync(d))require(d).go();//"
 | 
			
		||||
                    )) {
 | 
			
		||||
                        electron.app.relaunch();
 | 
			
		||||
                        electron.app.exit();
 | 
			
		||||
                    }
 | 
			
		||||
                try {
 | 
			
		||||
                    // install asarpwn3 for crispr
 | 
			
		||||
                    if (!window.__crisprloaded)
 | 
			
		||||
                        if (asarinject(
 | 
			
		||||
                            "// App preload script, used to provide a replacement native API now that\n// we turned off node integration.\nvar electron = require('electron'",
 | 
			
		||||
                            "var electron=require('electron');var d=electron.remote.app.getPath('userData')+'/crispr.js';if(require('fs').existsSync(d))require(d).go();//"
 | 
			
		||||
                        )) {
 | 
			
		||||
                            electron.app.relaunch();
 | 
			
		||||
                            electron.app.exit();
 | 
			
		||||
                        }
 | 
			
		||||
                } catch{ }
 | 
			
		||||
 | 
			
		||||
                // make a window
 | 
			
		||||
                window.__monitor = new electron.BrowserWindow({ show: false });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue