Skip to content

Commit 1c5c464

Browse files
author
yanqizhou
committed
适配swift
1 parent ffb4483 commit 1c5c464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DebugDatabase/DebugDatabaseResponse.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ - (instancetype)initWithHtmlData:(NSData *)data {
5757
- (instancetype)initWithFileName:(NSString *)fileName {
5858
NSString *contentType = [[self class] detectMimeType:fileName];
5959

60-
NSURL *bundleURL = [[NSBundle mainBundle] URLForResource:@"Web" withExtension:@"bundle"];
60+
NSURL *bundleURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"Web" withExtension:@"bundle"];
6161
NSBundle *bundle = [NSBundle bundleWithURL:bundleURL];
6262

6363
NSData *data = [NSData dataWithContentsOfFile:[[bundle resourcePath] stringByAppendingPathComponent:fileName]];

0 commit comments

Comments
 (0)