Skip to content

Commit

Permalink
Merge pull request #78 from Thelonedevil/Thelonedevil-patch-1
Browse files Browse the repository at this point in the history
Update tinycon.js to allow case insensitive icon matching
  • Loading branch information
tommoor committed Apr 9, 2016
2 parents 51bda66 + 6830a69 commit 340c048
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 340c048

Please sign in to comment.