1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-28 16:48:04 +02:00

real logo of ikono added , backend settings changed we get everything from whitelabel logo

This commit is contained in:
Cevo 2015-10-05 17:21:51 +02:00
parent d66d80e229
commit c69767c10b

View File

@ -64,25 +64,18 @@ let Header = React.createClass({
WhitelabelStore.unlisten(this.onChange); WhitelabelStore.unlisten(this.onChange);
}, },
getLogo(){ getLogo(){
let logoPath = null; let logoPath = this.state.whitelabel.logo;
if (this.state.whitelabel && this.state.whitelabel.logo) { setFavicon(logoPath);
if (this.state.whitelabel.name === 'IkonoTV') { if (this.state.whitelabel.subdomain !== 'www'){
logoPath = 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/ikonotv/favicon.ico'; return <img className="img-brand" src={logoPath}/>;
}
else {
logoPath = this.state.whitelabel.logo;
}
let logo = <img className="img-brand" src={logoPath}/>;
setFavicon(logoPath);
console.log('should change browser icon');
console.log(logoPath);
return logo;
} }
return ( else {
<span> return (
<span>
<span>ascribe </span> <span>ascribe </span>
<span className="glyph-ascribe-spool-chunked ascribe-color"></span> <span className="glyph-ascribe-spool-chunked ascribe-color"></span>
</span>); </span>);
}
}, },
getPoweredBy(){ getPoweredBy(){