From c371c7c7585468e37c64fbf6bd10125085e6edc1 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Tue, 9 Aug 2016 16:33:01 -0400 Subject: [PATCH] Make header text display in Safari --- js/component/header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/component/header.js b/js/component/header.js index 81917a5b2..14de86fa0 100644 --- a/js/component/header.js +++ b/js/component/header.js @@ -7,7 +7,7 @@ var Header = React.createClass({ }, componentWillMount: function() { new MutationObserver(function(mutations) { - this.setState({ title: mutations[0].target.innerHTML }); + this.setState({ title: mutations[0].target.textContent }); }.bind(this)).observe( document.querySelector('title'), { subtree: true, characterData: true, childList: true }