mirror of
https://github.com/appen-isen/site-interpromo-2024.git
synced 2026-03-18 21:40:39 +01:00
@@ -14,11 +14,7 @@ else{
|
||||
//Ask for notifications permission on page load
|
||||
window.addEventListener('load', function() {
|
||||
if (Notification.permission !== "granted") {
|
||||
Notification.requestPermission().then(r => {
|
||||
if(r !== "granted"){
|
||||
console.error("Permission de notification refusée");
|
||||
}
|
||||
});
|
||||
Notification.requestPermission();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user