refactor(headerBarView): find title by class, not h1 tag

This commit is contained in:
Adam Bradley
2014-10-09 20:17:29 -05:00
parent 9985efaa52
commit 2deec085bb

View File

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