2
0
forked from Wavyzz/dolibarr

FIX oauth authent must be done only on click on link

Better message for notification denied.
This commit is contained in:
Laurent Destailleur
2024-02-09 13:32:44 +01:00
parent 290cb8447a
commit 0f53fe10d1
4 changed files with 20 additions and 10 deletions

View File

@@ -212,7 +212,7 @@ function check_events() {
result = 1;
} else {
console.log("Cancel check_events() with dolnotif_nb_test_for_page="+dolnotif_nb_test_for_page+". Check is useless because javascript Notification.permission is "+Notification.permission+" (blocked manualy or web site is not https).");
console.log("Cancel check_events() with dolnotif_nb_test_for_page="+dolnotif_nb_test_for_page+". Check is useless because javascript Notification.permission is "+Notification.permission+" (blocked manualy or web site is not https or browser is in Private mode).");
result = 2; // We return a positive so the repeated check will done even if authroization is not yet allowed may be after this check)
}