diff --git a/js/privatebin.js b/js/privatebin.js index 9bd336e4..2d330622 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -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; } } diff --git a/js/test/Alert.js b/js/test/Alert.js index 617c4889..8f79f7e6 100644 --- a/js/test/Alert.js +++ b/js/test/Alert.js @@ -218,6 +218,7 @@ describe('Alert', function () { return jsc.random(0, 1) ? true : $element; }); functions[trigger](message); + $.PrivateBin.Alert.setCustomHandler(null); return handlerCalled; } ); diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 4871e2c2..b60a9ce2 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -72,7 +72,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 8a32421c..32e662b9 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ if ($MARKDOWN): endif; ?> - +