refactor: more config options for generic config

This commit is contained in:
2024-01-22 15:00:17 +00:00
parent 6fd02cffbb
commit 65a96eb77b
10 changed files with 144 additions and 55 deletions

View File

@ -74,6 +74,9 @@ export async function sendNotification(state: LoginSession, req: NotificationReq
}
export async function subscribeToNotifications(publisher: EventPublisher) {
if (!CONFIG.features.pushNotifications) {
return;
}
// request permissions to send notifications
if ("Notification" in window) {
try {