Permalink
Browse files

Doesn't work contains another icon string in link rel on Chrome.

  • Loading branch information...
ussy committed Oct 1, 2012
1 parent 2b0b844 commit c7fc56f60cbfb21d121d8d21354d48e55c84a0d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 tinycon.js
View
@@ -62,7 +62,7 @@
for(var i=0, len=links.length; i < len; i++) {
var exists = (typeof(links[i]) !== 'undefined');
- if (exists && links[i].getAttribute('rel') === 'icon') {
+ if (exists && (links[i].getAttribute('rel') || '').match(/\bicon\b/)) {
head.removeChild(links[i]);
}
}

0 comments on commit c7fc56f

Please sign in to comment.