Fix data url support
Reviewed By: @tadeuzagallo Differential Revision: D2535768 fb-gh-sync-id: 537ecc462e4a8a9e807ccad28a715419f4d5f355
This commit is contained in:
parent
c456accbed
commit
261100d9d0
|
@ -39,7 +39,7 @@ RCT_EXPORT_MODULE()
|
||||||
static NSSet *schemes = nil;
|
static NSSet *schemes = nil;
|
||||||
static dispatch_once_t onceToken;
|
static dispatch_once_t onceToken;
|
||||||
dispatch_once(&onceToken, ^{
|
dispatch_once(&onceToken, ^{
|
||||||
schemes = [[NSSet alloc] initWithObjects:@"http", @"https", @"file", nil];
|
schemes = [[NSSet alloc] initWithObjects:@"http", @"https", @"file", @"data", nil];
|
||||||
});
|
});
|
||||||
return [schemes containsObject:requestURL.scheme.lowercaseString];
|
return [schemes containsObject:requestURL.scheme.lowercaseString];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue