mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Fix data url support
Reviewed By: @tadeuzagallo Differential Revision: D2535768 fb-gh-sync-id: 537ecc462e4a8a9e807ccad28a715419f4d5f355
This commit is contained in:
committed by
facebook-github-bot-7
parent
c456accbed
commit
261100d9d0
@@ -39,7 +39,7 @@ RCT_EXPORT_MODULE()
|
||||
static NSSet *schemes = nil;
|
||||
static dispatch_once_t 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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user