1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

iod attribute added to favicons

This commit is contained in:
Cevo 2015-10-09 10:14:59 +02:00
parent 3597b5a905
commit 38247fe15f

View File

@ -8,6 +8,7 @@ function constructHeadElement(elementType, elementId, elementAttributes) {
let head = (document.head || document.getElementsByTagName('head')[0]);
let element = document.createElement(elementType);
let oldElement = document.getElementById(elementId);
element.setAttribute('id', elementId);
for (let k in elementAttributes){
try {
element.setAttribute(k, elementAttributes[k]);