2
0
forked from Wavyzz/dolibarr

Fix end of loop

This commit is contained in:
Laurent Destailleur
2023-02-10 19:24:50 +01:00
parent 78201454e8
commit a103136990

View File

@@ -204,7 +204,7 @@ function check_events() {
result = 2; // We return a positive so the repeated check will done even if authroization is not yet allowed may be after this check)
}
if (dolnotif_nb_test_for_page > 5) {
if (dolnotif_nb_test_for_page >= 5) {
console.log("We did "+dolnotif_nb_test_for_page+" consecutive test on this page. We stop checking now from here by clearing dolnotif_idinterval="+dolnotif_idinterval);
clearInterval(dolnotif_idinterval);
}