From 602675ccb41adf1580d6008dbb818661e8583897 Mon Sep 17 00:00:00 2001 From: Cevo Date: Wed, 14 Oct 2015 17:29:14 +0200 Subject: [PATCH] set title pull req comment handled --- js/components/header.js | 5 ++--- js/utils/head_setter.js | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/js/components/header.js b/js/components/header.js index b1a03e02..8ee24191 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'; -import {constructHead, setTitle} from '../utils/head_setter'; +import {constructHead} from '../utils/head_setter'; let Header = React.createClass({ propTypes: { @@ -65,8 +65,7 @@ let Header = React.createClass({ }, getLogo(){ let whitelabel = this.state.whitelabel; - if (whitelabel.title && whitelabel.head) { - setTitle(whitelabel.title); + if (whitelabel.head) { constructHead(whitelabel.head); } else{ diff --git a/js/utils/head_setter.js b/js/utils/head_setter.js index f80e8945..1f8c8584 100644 --- a/js/utils/head_setter.js +++ b/js/utils/head_setter.js @@ -36,7 +36,3 @@ export function constructHead(headObject){ } } } - -export function setTitle(titleString){ - document.title = titleString; -}