mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 15:25:40 +08: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:
parent
3415904b63
commit
4c93da01c3
@ -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') + "'" %>;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user