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:
parent
3597b5a905
commit
38247fe15f
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user