Permalink
Browse files

Merge pull request #36 from ussy/master

Doesn't work contains another "icon" string in link rel on Chrome.
  • Loading branch information...
2 parents 2b0b844 + c7fc56f commit 8db1eec2039de4f7769374b55a9326d6b0d5c839 @tommoor committed Nov 15, 2012
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 8db1eec

Please sign in to comment.