From 68055977d24c25cd2d086cba173abb392059b03d Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 14 Feb 2023 19:20:10 +0100 Subject: NotificationAPI: Correctly request browser permissions --- src/components/VencordSettings/VencordTab.tsx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/components/VencordSettings/VencordTab.tsx') diff --git a/src/components/VencordSettings/VencordTab.tsx b/src/components/VencordSettings/VencordTab.tsx index 6ea1ca9..9880872 100644 --- a/src/components/VencordSettings/VencordTab.tsx +++ b/src/components/VencordSettings/VencordTab.tsx @@ -21,6 +21,7 @@ import { useSettings } from "@api/settings"; import { classNameFactory } from "@api/Styles"; import DonateButton from "@components/DonateButton"; import ErrorBoundary from "@components/ErrorBoundary"; +import { ErrorCard } from "@components/ErrorCard"; import IpcEvents from "@utils/IpcEvents"; import { Margins } from "@utils/margins"; import { identity, useAwaiter } from "@utils/misc"; @@ -141,6 +142,12 @@ function VencordSettings() { Notification Style + {notifSettings.useNative !== "never" && Notification.permission === "denied" && ( + + Desktop Notification Permission denied + You have denied Notification Permissions. Thus, Desktop notifications will not work! + + )} Some plugins may show you notifications. These come in two styles: