Revision: 28268
http://sourceforge.net/p/bibdesk/svn/28268
Author: hofman
Date: 2023-05-28 21:24:19 +0000 (Sun, 28 May 2023)
Log Message:
-----------
Only try to get favicon from URL adding or removing slash when there is no
fragment or query. Also try to get from recent icons.
Modified Paths:
--------------
trunk/bibdesk/BDSKWebIconDatabase.m
Modified: trunk/bibdesk/BDSKWebIconDatabase.m
===================================================================
--- trunk/bibdesk/BDSKWebIconDatabase.m 2023-05-28 16:31:50 UTC (rev 28267)
+++ trunk/bibdesk/BDSKWebIconDatabase.m 2023-05-28 21:24:19 UTC (rev 28268)
@@ -97,11 +97,13 @@
if (icon)
return icon;
NSString *iconURLString = [[pages objectForKey:pageURLString]
objectForKey:ICONURL_KEY];
- if (iconURLString == nil) {
+ if (iconURLString == nil && [pageURLString containsString:@"?"] == NO &&
[pageURLString containsString:@"#"] == NO && [pageURLString
containsString:@"://"]) {
if ([pageURLString hasSuffix:@"/"])
pageURLString = [pageURLString substringToIndex:[pageURLString
length] - 1];
else
pageURLString = [pageURLString stringByAppendingString:@"/"];
+ if ((icon = [recentIcons objectForKey:pageURLString]))
+ return icon;
iconURLString = [[pages objectForKey:pageURLString]
objectForKey:ICONURL_KEY];
}
if (iconURLString == nil)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit