mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-10 01:15:00 +08:00
Remove unused websocket-executor-name and websocket-executor-port options
Reviewed By: davidaurelio Differential Revision: D4745529 fbshipit-source-id: 2c69aca33c999ccf2af8dbf8d9af2c1d123b59cd
This commit is contained in:
committed by
Facebook Github Bot
parent
f39ef36190
commit
0ea1ea5fb7
@@ -54,18 +54,8 @@ RCT_EXPORT_MODULE()
|
||||
- (void)setUp
|
||||
{
|
||||
if (!_url) {
|
||||
NSUserDefaults *standardDefaults = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
// TODO t16297016: this seems to be unused, remove?
|
||||
NSInteger port = [standardDefaults integerForKey:@"websocket-executor-port"];
|
||||
if (!port) {
|
||||
port = [[[_bridge bundleURL] port] integerValue] ?: 8081;
|
||||
}
|
||||
|
||||
NSString *host = [[_bridge bundleURL] host];
|
||||
if (!host) {
|
||||
host = @"localhost";
|
||||
}
|
||||
NSInteger port = [[[_bridge bundleURL] port] integerValue] ?: 8081;
|
||||
NSString *host = [[_bridge bundleURL] host] ?: @"localhost";
|
||||
NSString *URLString = [NSString stringWithFormat:@"http://%@:%zd/debugger-proxy?role=client", host, port];
|
||||
_url = [RCTConvert NSURL:URLString];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user