mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
new favicons added
This commit is contained in:
parent
15460ebc2a
commit
b3a9bc2594
@ -68,7 +68,7 @@ let Header = React.createClass({
|
|||||||
setTitle(whitelabel.title)
|
setTitle(whitelabel.title)
|
||||||
constructHead(whitelabel.head);
|
constructHead(whitelabel.head);
|
||||||
if (whitelabel.subdomain !== 'www'){
|
if (whitelabel.subdomain !== 'www'){
|
||||||
return(<img className="img-brand" src={whitelabel.logo}/>);
|
return (<img className="img-brand" src={whitelabel.logo}/>);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return (
|
return (
|
||||||
|
@ -10,6 +10,8 @@ function constructHeadElement(elementType, elementId, elementAttributes) {
|
|||||||
let oldElement = document.getElementById(elementId);
|
let oldElement = document.getElementById(elementId);
|
||||||
for (let k in elementAttributes){
|
for (let k in elementAttributes){
|
||||||
try {
|
try {
|
||||||
|
console.log('Setting favicons');
|
||||||
|
console.log(elementAttributes[k]);
|
||||||
element.setAttribute(k, elementAttributes[k]);
|
element.setAttribute(k, elementAttributes[k]);
|
||||||
}
|
}
|
||||||
catch(e){
|
catch(e){
|
||||||
|
Loading…
Reference in New Issue
Block a user