mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
real logo of ikono added
This commit is contained in:
parent
526bed6029
commit
d66d80e229
13
index.html
13
index.html
@ -2,19 +2,6 @@
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="<%= BASE_URL %>static/img/hq-favicons/apple-touch-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="<%= BASE_URL %>static/img/hq-favicons/apple-touch-icon-60x60.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="<%= BASE_URL %>static/img/hq-favicons/apple-touch-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="<%= BASE_URL %>static/img/hq-favicons/apple-touch-icon-76x76.png">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="<%= BASE_URL %>static/img/hq-favicons/apple-touch-icon-114x114.png">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="<%= BASE_URL %>static/img/hq-favicons/apple-touch-icon-120x120.png">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="<%= BASE_URL %>static/img/hq-favicons/apple-touch-icon-144x144.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="<%= BASE_URL %>static/img/hq-favicons/apple-touch-icon-152x152.png">
|
||||
<link rel="icon" type="image/png" href="<%= BASE_URL %>static/img/hq-favicons/favicon-32x32.png" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="<%= BASE_URL %>static/img/hq-favicons/favicon-96x96.png" sizes="96x96">
|
||||
<link rel="icon" type="image/png" href="<%= BASE_URL %>static/img/hq-favicons/favicon-16x16.png" sizes="16x16">
|
||||
<link rel="manifest" href="<%= BASE_URL %>static/img/hq-favicons/manifest.json">
|
||||
<link rel="shortcut icon" href="<%= BASE_URL %>static/img/hq-favicons/favicon.ico">
|
||||
<meta name="msapplication-TileColor" content="#00aba9">
|
||||
<meta name="msapplication-TileImage" content="<%= BASE_URL %>static/img/hq-favicons/mstile-144x144.png">
|
||||
<meta name="msapplication-config" content="<%= BASE_URL %>static/img/hq-favicons/browserconfig.xml">
|
||||
|
@ -29,7 +29,7 @@ import NavRoutesLinks from './nav_routes_links';
|
||||
import { mergeOptions } from '../utils/general_utils';
|
||||
import { getLangText } from '../utils/lang_utils';
|
||||
|
||||
let setFavicon = require('favicon-setter');
|
||||
import setFavicon from 'favicon-setter';
|
||||
|
||||
let Header = React.createClass({
|
||||
propTypes: {
|
||||
@ -64,10 +64,18 @@ let Header = React.createClass({
|
||||
WhitelabelStore.unlisten(this.onChange);
|
||||
},
|
||||
getLogo(){
|
||||
if (this.state.whitelabel && this.state.whitelabel.logo){
|
||||
let logoPath = this.state.whitelabel.logo;
|
||||
let logo = <img className="img-brand" src={logoPath} />;
|
||||
let logoPath = null;
|
||||
if (this.state.whitelabel && this.state.whitelabel.logo) {
|
||||
if (this.state.whitelabel.name === 'IkonoTV') {
|
||||
logoPath = 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/ikonotv/favicon.ico';
|
||||
}
|
||||
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 (
|
||||
|
Loading…
Reference in New Issue
Block a user