fixed route Notification
All checks were successful
Build frontend / build (push) Successful in 1m33s
All checks were successful
Build frontend / build (push) Successful in 1m33s
This commit is contained in:
@ -88,10 +88,8 @@ export default function NotificationHandler() {
|
||||
|
||||
async function handleEnable() {
|
||||
setShowPrompt(false);
|
||||
|
||||
// This MUST be synchronous from a user gesture
|
||||
const permission = await Notification.requestPermission();
|
||||
|
||||
if (permission === "granted") {
|
||||
await setupFCM();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user