avoid instability of tests due to Alert callback testing, which can prevent notifications from getting displayed

This commit is contained in:
El RIDO 2019-06-23 09:39:21 +02:00
parent 603f7fd911
commit d9f27fb004
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
4 changed files with 5 additions and 4 deletions

View file

@ -4556,8 +4556,8 @@ jQuery.PrivateBin = (function($, RawDeflate) {
function isBadBot() {
// check whether a bot user agent part can be found in the current
// user agent
for (let i = 0; i < badBotUA.length; ++i) {
if (navigator.userAgent.indexOf(badBotUA[i]) >= 0) {
for (const UAfragment of badBotUA) {
if (navigator.userAgent.indexOf(UAfragment) >= 0) {
return true;
}
}