From d66d80e229079d857fbb566d632c97a058870e74 Mon Sep 17 00:00:00 2001 From: Cevo Date: Mon, 5 Oct 2015 14:02:02 +0200 Subject: [PATCH] real logo of ikono added --- index.html | 13 ------------- js/components/header.js | 16 ++++++++++++---- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 743d01dc..0d8fd472 100644 --- a/index.html +++ b/index.html @@ -2,19 +2,6 @@ - - - - - - - - - - - - - diff --git a/js/components/header.js b/js/components/header.js index 0a58f6e7..dd8a70e6 100644 --- a/js/components/header.js +++ b/js/components/header.js @@ -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 = ; + 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 = ; setFavicon(logoPath); + console.log('should change browser icon'); + console.log(logoPath); return logo; } return (