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