From 54dc75da804d4788e61e28fa372bc7aa7d41299a Mon Sep 17 00:00:00 2001 From: NikitaKozhevnikov Date: Thu, 11 Jan 2018 15:07:56 +0300 Subject: [PATCH] convert htmlcollection to simple array --- tinycon.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tinycon.js b/tinycon.js index 0b77a73..d0693ef 100644 --- a/tinycon.js +++ b/tinycon.js @@ -60,6 +60,7 @@ var removeFaviconTag = function(){ var links = document.getElementsByTagName('link'); + links = Array.prototype.slice.call(links); for(var i=0, len=links.length; i < len; i++) { var exists = (typeof(links[i]) !== 'undefined');