|
@@ -296,7 +296,7 @@
|
|
|
|
|
|
- (instancetype)initWithUploadDirectory:(NSString*)path {
|
|
- (instancetype)initWithUploadDirectory:(NSString*)path {
|
|
if ((self = [super init])) {
|
|
if ((self = [super init])) {
|
|
- NSBundle* siteBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"GCDWebUploader" ofType:@"bundle"]];
|
|
|
|
|
|
+ NSBundle* siteBundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:[GCDWebUploader class]] pathForResource:@"GCDWebUploader" ofType:@"bundle"]];
|
|
if (siteBundle == nil) {
|
|
if (siteBundle == nil) {
|
|
return nil;
|
|
return nil;
|
|
}
|
|
}
|