Skip to content

Commit

Permalink
Merge branch 'henry0312-imageURL'
Browse files Browse the repository at this point in the history
  • Loading branch information
julienXX committed Jul 25, 2014
2 parents b2a6877 + 955881f commit a1f2c7c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Terminal Notifier/AppDelegate.m
Expand Up @@ -208,8 +208,7 @@ - (NSImage*)getImageFromURL:(NSString *) url;
NSURL *imageURL = [NSURL URLWithString:url];
if([[imageURL scheme] length] == 0){
// Prefix 'file://' if no scheme
url = [NSString stringWithFormat:@"%@%@", @"file://", url];
imageURL = [NSURL URLWithString:url];
imageURL = [NSURL fileURLWithPath:url];
}
return [[NSImage alloc] initWithContentsOfURL:imageURL];
}
Expand Down

0 comments on commit a1f2c7c

Please sign in to comment.