mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
console logs a removed head checking and default in the case of undefined head added
This commit is contained in:
parent
b3a9bc2594
commit
3597b5a905
@ -65,8 +65,13 @@ let Header = React.createClass({
|
|||||||
},
|
},
|
||||||
getLogo(){
|
getLogo(){
|
||||||
let whitelabel = this.state.whitelabel;
|
let whitelabel = this.state.whitelabel;
|
||||||
setTitle(whitelabel.title)
|
if (whitelabel.title && whitelabel.head) {
|
||||||
constructHead(whitelabel.head);
|
setTitle(whitelabel.title);
|
||||||
|
constructHead(whitelabel.head);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
setTitle('ascribe');
|
||||||
|
}
|
||||||
if (whitelabel.subdomain !== 'www'){
|
if (whitelabel.subdomain !== 'www'){
|
||||||
return (<img className="img-brand" src={whitelabel.logo}/>);
|
return (<img className="img-brand" src={whitelabel.logo}/>);
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,6 @@ 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