Make header text display in Safari

This commit is contained in:
Alex Liebowitz 2016-08-09 16:33:01 -04:00
parent 0ebbe4427b
commit c371c7c758

View file

@ -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 }