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 e128010 commit 21065dcCopy full SHA for 21065dc
Terminal Notifier/AppDelegate.m
@@ -206,7 +206,8 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification;
206
- (NSImage*)getImageFromURL:(NSString *) url;
207
{
208
NSURL *imageURL = [NSURL URLWithString:url];
209
- if([[imageURL scheme] length] == 0){ // Prefix file:// if no scheme
+ if([[imageURL scheme] length] == 0){
210
+ // Prefix 'file://' if no scheme
211
url = [NSString stringWithFormat:@"%@%@", @"file://", url];
212
imageURL = [NSURL URLWithString:url];
213
}
0 commit comments