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 319b687 commit 92fb03eCopy full SHA for 92fb03e
Terminal Notifier/AppDelegate.m
@@ -221,8 +221,7 @@ - (NSImage*)getImageFromURL:(NSString *) url;
221
NSURL *imageURL = [NSURL URLWithString:url];
222
if([[imageURL scheme] length] == 0){
223
// Prefix 'file://' if no scheme
224
- url = [NSString stringWithFormat:@"%@%@", @"file://", url];
225
- imageURL = [NSURL URLWithString:url];
+ imageURL = [NSURL fileURLWithPath:url];
226
}
227
return [[NSImage alloc] initWithContentsOfURL:imageURL];
228
0 commit comments