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) {
141
141
const logStream = createWriteStream ( LAST_RUN_LOG_PATH ) ;
142
142
logStream . write ( `--- Launching HTTP Toolkit desktop v${ DESKTOP_VERSION } at ${ new Date ( ) . toISOString ( ) } ---\n` ) ;
143
143
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
150
145
. version ( DESKTOP_VERSION )
151
146
. help ( )
152
147
. argv ;
153
148
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
-
164
149
let serverKilled = false ;
165
150
app . on ( 'will-quit' , async ( event ) => {
166
151
if ( server && ! serverKilled ) {
@@ -207,8 +192,6 @@ if (!amMainInstance) {
207
192
// gets replaced on first navigation (immediately), whilst global
208
193
// vars like this are forever.
209
194
injectValue ( 'httpToolkitAuthToken' , AUTH_TOKEN ) ;
210
-
211
- if ( args [ 'with-forwarding' ] ) injectValue ( 'httpToolkitForwardingDefault' , args [ 'with-forwarding' ] ) ;
212
195
} ) ;
213
196
214
197
// Redirect all navigations & new windows to the system browser
You can’t perform that action at this time.
0 commit comments