We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 347aeaa commit d0480c8Copy full SHA for d0480c8
PBWebController.m
@@ -37,9 +37,9 @@ - (void) awakeFromNib
37
[view setResourceLoadDelegate:self];
38
39
NSURL *resourceURL = [[[NSBundle mainBundle] resourceURL] URLByStandardizingPath];
40
- NSURL *baseURL = [[resourceURL URLByAppendingPathComponent:@"html/views" isDirectory:YES] URLByAppendingPathComponent:startFile isDirectory:YES];
+ NSURL *baseURL = [[resourceURL URLByAppendingPathComponent:@"html/views"] URLByAppendingPathComponent:startFile];
41
42
- NSURL *fileURL = [baseURL URLByAppendingPathComponent:@"index.html" isDirectory:NO];
+ NSURL *fileURL = [baseURL URLByAppendingPathComponent:@"index.html"];
43
[[view mainFrame] loadRequest:[NSURLRequest requestWithURL:fileURL]];
44
}
45
0 commit comments