File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -141,26 +141,11 @@ if (!amMainInstance) {
141141    const  logStream  =  createWriteStream ( LAST_RUN_LOG_PATH ) ; 
142142    logStream . write ( `--- Launching HTTP Toolkit desktop v${ DESKTOP_VERSION }   at ${ new  Date ( ) . toISOString ( ) }   ---\n` ) ; 
143143
144-     const  args  =  yargs 
145-         . option ( 'with-forwarding' ,  { 
146-             type : 'string' , 
147-             hidden : true , 
148-             description : "Preconfigure a forwarding address, for integration with other tools." 
149-         } ) 
144+     yargs 
150145        . version ( DESKTOP_VERSION ) 
151146        . help ( ) 
152147        . argv ; 
153148
154-     if  ( 
155-         args [ 'with-forwarding' ]  &&  ( 
156-             ! args [ 'with-forwarding' ] . includes ( '|' )  || 
157-             args [ 'with-forwarding' ] . match ( / ' " \n / ) 
158-         ) 
159-     )  { 
160-         console . error ( 'Invalid --with-forwarding argument' ) ; 
161-         process . exit ( 1 ) ;  // Safe to hard exit - we haven't opened/started anything yet. 
162-     } 
163- 
164149    let  serverKilled  =  false ; 
165150    app . on ( 'will-quit' ,  async  ( event )  =>  { 
166151        if  ( server  &&  ! serverKilled )  { 
@@ -207,8 +192,6 @@ if (!amMainInstance) {
207192            // gets replaced on first navigation (immediately), whilst global 
208193            // vars like this are forever. 
209194            injectValue ( 'httpToolkitAuthToken' ,  AUTH_TOKEN ) ; 
210- 
211-             if  ( args [ 'with-forwarding' ] )  injectValue ( 'httpToolkitForwardingDefault' ,  args [ 'with-forwarding' ] ) ; 
212195        } ) ; 
213196
214197        // Redirect all navigations & new windows to the system browser 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments