Changeset 10474


Ignore:
Timestamp:
Apr 13, 2010, 12:20:19 AM (12 years ago)
Author:
livings124
Message:

prefer favicon.png over favicon.ico

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TrackerCell.m

    r10471 r10474  
    225225    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    226226   
    227     //try favicon.ico
    228     NSURL * favIconUrl = [NSURL URLWithString: [baseAddress stringByAppendingPathComponent: @"favicon.ico"]];
     227    //try favicon.png
     228    NSURL * favIconUrl = [NSURL URLWithString: [baseAddress stringByAppendingPathComponent: @"favicon.png"]];
    229229   
    230230    NSURLRequest * request = [NSURLRequest requestWithURL: favIconUrl cachePolicy: NSURLRequestUseProtocolCachePolicy
     
    233233    NSImage * icon = [[NSImage alloc] initWithData: iconData];
    234234   
    235     //try favicon.png
     235    //try favicon.ico
    236236    if (!icon)
    237237    {
    238         favIconUrl = [NSURL URLWithString: [baseAddress stringByAppendingPathComponent: @"favicon.png"]];
     238        favIconUrl = [NSURL URLWithString: [baseAddress stringByAppendingPathComponent: @"favicon.ico"]];
    239239       
    240240        request = [NSURLRequest requestWithURL: favIconUrl cachePolicy: NSURLRequestUseProtocolCachePolicy
Note: See TracChangeset for help on using the changeset viewer.