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.
2 parents b2a6877 + 955881f commit a1f2c7cCopy full SHA for a1f2c7c
Terminal Notifier/AppDelegate.m
@@ -208,8 +208,7 @@ - (NSImage*)getImageFromURL:(NSString *) url;
208
NSURL *imageURL = [NSURL URLWithString:url];
209
if([[imageURL scheme] length] == 0){
210
// Prefix 'file://' if no scheme
211
- url = [NSString stringWithFormat:@"%@%@", @"file://", url];
212
- imageURL = [NSURL URLWithString:url];
+ imageURL = [NSURL fileURLWithPath:url];
213
}
214
return [[NSImage alloc] initWithContentsOfURL:imageURL];
215
0 commit comments