Skip to content

Commit

Permalink
Update tinycon.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Thelonedevil committed Oct 21, 2015
1 parent 6537036 commit 6830a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tinycon.js
Expand Up @@ -49,7 +49,7 @@
var links = document.getElementsByTagName('link');

for(var i=0, len=links.length; i < len; i++) {
if ((links[i].getAttribute('rel') || '').match(/\bicon\b/)) {
if ((links[i].getAttribute('rel') || '').match(/\bicon\b/i)) {
return links[i];
}
}
Expand All @@ -64,7 +64,7 @@

for(var i=0, len=links.length; i < len; i++) {
var exists = (typeof(links[i]) !== 'undefined');
if (exists && (links[i].getAttribute('rel') || '').match(/\bicon\b/)) {
if (exists && (links[i].getAttribute('rel') || '').match(/\bicon\b/i)) {
head.removeChild(links[i]);
}
}
Expand Down

0 comments on commit 6830a69

Please sign in to comment.