File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ export class NativeScriptDebugAdapter extends ChromeDebugAdapter {
148
148
( ChromeDebugAdapter as any ) . SET_BREAKPOINTS_TIMEOUT = 20000 ;
149
149
150
150
this . isLiveSync = args . watch ;
151
- transformedArgs . address = this . applyLoopbackAddress ( transformedArgs . address , args . platform . toLowerCase ( ) ) ;
151
+ transformedArgs . address = this . getNormalizedAddress ( transformedArgs . address , args . platform . toLowerCase ( ) ) ;
152
152
153
153
return super . attach ( transformedArgs ) ;
154
154
}
@@ -269,9 +269,9 @@ export class NativeScriptDebugAdapter extends ChromeDebugAdapter {
269
269
} ) ;
270
270
}
271
271
272
- private applyLoopbackAddress ( address : string , platform : string ) {
272
+ private getNormalizedAddress ( address : string , platform : string ) {
273
+ // If it is undefined it will use 127.0.0.1 and will fail on iOS
273
274
if ( address === undefined && platform === "ios" ) {
274
- // If it is undefined it will use 127.0.0.1 and will fail on iOS
275
275
return "localhost" ;
276
276
}
277
277
return address ;
You can’t perform that action at this time.
0 commit comments