1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +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 head = (document.head || document.getElementsByTagName('head')[0]);
let element = document.createElement(elementType); let element = document.createElement(elementType);
let oldElement = document.getElementById(elementId); let oldElement = document.getElementById(elementId);
element.setAttribute('id', elementId);
for (let k in elementAttributes){ for (let k in elementAttributes){
try { try {
element.setAttribute(k, elementAttributes[k]); element.setAttribute(k, elementAttributes[k]);