We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb4483 commit 1c5c464Copy full SHA for 1c5c464
DebugDatabase/DebugDatabaseResponse.m
@@ -57,7 +57,7 @@ - (instancetype)initWithHtmlData:(NSData *)data {
57
- (instancetype)initWithFileName:(NSString *)fileName {
58
NSString *contentType = [[self class] detectMimeType:fileName];
59
60
- NSURL *bundleURL = [[NSBundle mainBundle] URLForResource:@"Web" withExtension:@"bundle"];
+ NSURL *bundleURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"Web" withExtension:@"bundle"];
61
NSBundle *bundle = [NSBundle bundleWithURL:bundleURL];
62
63
NSData *data = [NSData dataWithContentsOfFile:[[bundle resourcePath] stringByAppendingPathComponent:fileName]];
0 commit comments