mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
Add Mediapartners and AdsBot to list of user agents for Googlebot in browser-update.js.erb
This commit is contained in:
parent
659546c4e4
commit
f1b4c26e8e
|
@ -19,12 +19,12 @@ var $buo = function() {
|
|||
|
||||
// sam: my main concern here is mobile, but its an outlier, for now we support ie9, set conditionally and stuff with pushState
|
||||
if (window.ie === "new" || (window.history && window.history.pushState && !badAndroid)) {
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
// we don't ask Googlebot to update their browser
|
||||
if (ua.indexOf('Googlebot') >= 0) {
|
||||
return;
|
||||
if (ua.indexOf('Googlebot') >= 0 || ua.indexOf('Mediapartners') >= 0 || ua.indexOf('AdsBot') >= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// retrieve localized browser upgrade text
|
||||
|
|
Loading…
Reference in New Issue
Block a user