mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 14:36:08 -04:00
avoid instability of tests due to Alert callback testing, which can prevent notifications from getting displayed
This commit is contained in:
parent
603f7fd911
commit
d9f27fb004
4 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue