mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00: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
@ -23,7 +23,7 @@ var $buo = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// we don't ask Googlebot to update their browser
|
// we don't ask Googlebot to update their browser
|
||||||
if (ua.indexOf('Googlebot') >= 0) {
|
if (ua.indexOf('Googlebot') >= 0 || ua.indexOf('Mediapartners') >= 0 || ua.indexOf('AdsBot') >= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user