mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
set title pull req comment handled
This commit is contained in:
parent
d1471d1ec9
commit
602675ccb4
@ -29,7 +29,7 @@ import NavRoutesLinks from './nav_routes_links';
|
|||||||
import { mergeOptions } from '../utils/general_utils';
|
import { mergeOptions } from '../utils/general_utils';
|
||||||
import { getLangText } from '../utils/lang_utils';
|
import { getLangText } from '../utils/lang_utils';
|
||||||
|
|
||||||
import {constructHead, setTitle} from '../utils/head_setter';
|
import {constructHead} from '../utils/head_setter';
|
||||||
|
|
||||||
let Header = React.createClass({
|
let Header = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
@ -65,8 +65,7 @@ let Header = React.createClass({
|
|||||||
},
|
},
|
||||||
getLogo(){
|
getLogo(){
|
||||||
let whitelabel = this.state.whitelabel;
|
let whitelabel = this.state.whitelabel;
|
||||||
if (whitelabel.title && whitelabel.head) {
|
if (whitelabel.head) {
|
||||||
setTitle(whitelabel.title);
|
|
||||||
constructHead(whitelabel.head);
|
constructHead(whitelabel.head);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -36,7 +36,3 @@ export function constructHead(headObject){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setTitle(titleString){
|
|
||||||
document.title = titleString;
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user