Made getFaviconTag() more accurate #12

Merged
merged 1 commit into from Feb 13, 2012
View
@@ -45,7 +45,7 @@
var links = document.getElementsByTagName('link');
for(var i=0, len=links.length; i < len; i++) {
- if (links[i].getAttribute('rel') === 'icon') {
+ if ((links[i].getAttribute('rel') || '').match(/\bicon\b/)) {
return links[i];
}
}