This commit is contained in:
s2
2017-12-11 21:28:27 +01:00
parent 23564b3c29
commit e13a5b4c3b

View File

@@ -5,8 +5,7 @@ var changeIcon = function(color) {
var getFavicon = function() { var getFavicon = function() {
var favicon = undefined; var favicon = undefined;
var nodeList = document.getElementsByTagName("link"); var nodeList = document.getElementsByTagName("link");
for (var i = 0; i < nodeList.length; i++) for (var i = 0; i < nodeList.length; i++) {
{
if ((nodeList[i].getAttribute("rel") == "icon") || (nodeList[i].getAttribute("rel") == "shortcut icon")) { if ((nodeList[i].getAttribute("rel") == "icon") || (nodeList[i].getAttribute("rel") == "shortcut icon")) {
favicon = nodeList[i].getAttribute("href"); favicon = nodeList[i].getAttribute("href");
} }