Skip to content

Commit a1f2c7c

Browse files
committed
Merge branch 'henry0312-imageURL'
2 parents b2a6877 + 955881f commit a1f2c7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: Terminal Notifier/AppDelegate.m

+1-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ - (NSImage*)getImageFromURL:(NSString *) url;
208208
NSURL *imageURL = [NSURL URLWithString:url];
209209
if([[imageURL scheme] length] == 0){
210210
// Prefix 'file://' if no scheme
211-
url = [NSString stringWithFormat:@"%@%@", @"file://", url];
212-
imageURL = [NSURL URLWithString:url];
211+
imageURL = [NSURL fileURLWithPath:url];
213212
}
214213
return [[NSImage alloc] initWithContentsOfURL:imageURL];
215214
}

0 commit comments

Comments
 (0)