From 6830a69eaf5ac30bc1f94afd8c6e98f9d98f15e6 Mon Sep 17 00:00:00 2001 From: Justin Wiblin Date: Wed, 21 Oct 2015 09:36:09 +0100 Subject: [PATCH] Update tinycon.js --- tinycon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinycon.js b/tinycon.js index 2b5795f..090147b 100644 --- a/tinycon.js +++ b/tinycon.js @@ -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]; } } @@ -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]); } }