From 981e08a0440cba1265f2013e4a968ad916360242 Mon Sep 17 00:00:00 2001 From: michaelpg Date: Mon, 17 Nov 2014 14:57:02 -0800 Subject: [PATCH] About: Check for existence of more info container TypeError shows up in console on Win/Mac/Linux. R=dbeam@chromium.org Review URL: https://codereview.chromium.org/728723002 Cr-Commit-Position: refs/heads/master@{#304507} --- chrome/browser/resources/help/help_page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/browser/resources/help/help_page.js b/chrome/browser/resources/help/help_page.js index 050a98c0f492..98e1a166e813 100644 --- a/chrome/browser/resources/help/help_page.js +++ b/chrome/browser/resources/help/help_page.js @@ -187,7 +187,7 @@ cr.define('help', function() { */ setMoreInfoVisible_: function(visible) { var moreInfo = $('more-info-container'); - if (visible == moreInfo.classList.contains('visible')) + if (!moreInfo || visible == moreInfo.classList.contains('visible')) return; moreInfo.classList.toggle('visible', visible); -- 2.11.4.GIT