mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: don't check for notification permission in tests
This commit is contained in:
@@ -168,7 +168,7 @@ export default function AddReminderDialog(props: AddReminderDialogProps) {
|
||||
);
|
||||
|
||||
const permissionResult = await Notification.requestPermission();
|
||||
if (permissionResult !== "granted") {
|
||||
if (!IS_TESTING && permissionResult !== "granted") {
|
||||
showToast(
|
||||
"error",
|
||||
"Please grant notifications permission to add new reminders."
|
||||
|
||||
Reference in New Issue
Block a user