Skip to content
This repository was archived by the owner on Feb 11, 2020. It is now read-only.

Commit 7777b30

Browse files
committed
github repo link now uses the openURLOnClick: shortcut
1 parent 8d59b35 commit 7777b30

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

AppController.j

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ var repositoryURL = @"http://github.com/luddep/LPKit";
6868
[githubLink setTextColor:[CPColor colorWithWhite:0 alpha:0.3]];
6969
[githubLink setTextHoverColor:[CPColor colorWithWhite:0 alpha:0.6]];
7070
[githubLink setFrameOrigin:CGPointMake(100, CGRectGetMaxY([description frame]) + 2)];
71-
[githubLink setTarget:self];
72-
[githubLink setAction:@selector(didClickGithubLink:)]
71+
[githubLink openURLOnClick:[CPURL URLWithString:repositoryURL]]
7372
[contentView addSubview:githubLink];
7473

7574
var box = [[CPBox alloc] initWithFrame:CGRectMake(100, 120, CGRectGetWidth(bounds) - 200, CGRectGetHeight(bounds) - 240)];
@@ -146,10 +145,5 @@ var repositoryURL = @"http://github.com/luddep/LPKit";
146145
break;
147146
}
148147
}
149-
150-
- (void)didClickGithubLink:(id)sender
151-
{
152-
window.open(repositoryURL);
153-
}
154148

155149
@end

0 commit comments

Comments
 (0)