Make header text display in Safari
This commit is contained in:
parent
0ebbe4427b
commit
c371c7c758
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ var Header = React.createClass({
|
||||||
},
|
},
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
new MutationObserver(function(mutations) {
|
new MutationObserver(function(mutations) {
|
||||||
this.setState({ title: mutations[0].target.innerHTML });
|
this.setState({ title: mutations[0].target.textContent });
|
||||||
}.bind(this)).observe(
|
}.bind(this)).observe(
|
||||||
document.querySelector('title'),
|
document.querySelector('title'),
|
||||||
{ subtree: true, characterData: true, childList: true }
|
{ subtree: true, characterData: true, childList: true }
|
||||||
|
|
Loading…
Reference in a new issue