mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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') + "'" %>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user