mirror of
https://github.com/appen-isen/site-interpromo-2023.git
synced 2026-01-18 16:47:22 +01:00
Ask for permission on load
This commit is contained in:
@@ -11,6 +11,13 @@ if (Notification.permission !== "granted") {
|
||||
Notification.requestPermission();
|
||||
}
|
||||
|
||||
//Ask for notifications permission on page load
|
||||
window.addEventListener('load', function() {
|
||||
if (Notification.permission !== "granted") {
|
||||
Notification.requestPermission();
|
||||
}
|
||||
});
|
||||
|
||||
const equipeList = await pb.collection('equipes').getFullList({});
|
||||
|
||||
const sportList = await pb.collection('sport').getFullList({});
|
||||
|
||||
Reference in New Issue
Block a user