From 2deec085bbdd11e18d9becf79bc8d4dac4d94a37 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 9 Oct 2014 20:17:29 -0500 Subject: [PATCH] refactor(headerBarView): find title by class, not h1 tag --- js/views/headerBarView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/headerBarView.js b/js/views/headerBarView.js index c6ca92a553..92e0000b37 100644 --- a/js/views/headerBarView.js +++ b/js/views/headerBarView.js @@ -36,7 +36,7 @@ // Once we encounter a titleEl, realize we are now counting the right-buttons, not left for(i = 0; i < childNodes.length; i++) { c = childNodes[i]; - if (c.tagName && c.tagName.toLowerCase() == 'h1') { + if (c.classList && c.classList.contains('title')) { isCountingRightWidth = true; continue; }