Googlebot seems to parse Javascript and inserts our browser update message

into their search results. If our client is googlebot, don't tell them to
update their browser.
This commit is contained in:
Robin Ward 2013-12-23 15:13:09 -05:00
parent 3415904b63
commit 4c93da01c3

View File

@ -22,6 +22,11 @@ var $buo = function() {
return;
}
// we don't ask Googlebot to update their browser
if (ua.indexOf('Googlebot') >= 0) {
return;
}
// retrieve localized browser upgrade text
var t = <%= "'" + I18n.t('js.browser_update') + "'" %>;