mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
Check against self class in initialize methods
This commit is contained in:
@@ -61,8 +61,10 @@ static NSString *bundleResourceSubdirectory = nil;
|
||||
|
||||
+ (void)initialize
|
||||
{
|
||||
// Use the mainBundle by default.
|
||||
bundleResourceBundle = [NSBundle mainBundle];
|
||||
if (self == [CodePush class]) {
|
||||
// Use the mainBundle by default.
|
||||
bundleResourceBundle = [NSBundle mainBundle];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - Public Obj-C API
|
||||
|
||||
Reference in New Issue
Block a user