fix: h5 去掉通知弹窗引导
This commit is contained in:
@@ -571,8 +571,8 @@ export const NotificationProvider = ({ children }) => {
|
|||||||
logger.info('NotificationContext', 'Auto-requesting browser permission on notification');
|
logger.info('NotificationContext', 'Auto-requesting browser permission on notification');
|
||||||
await requestBrowserPermission();
|
await requestBrowserPermission();
|
||||||
}
|
}
|
||||||
// 如果权限是denied(已拒绝),提供设置指引
|
// 如果权限是denied(已拒绝),提供设置指引(仅 PC 端显示)
|
||||||
else if (browserPermission === 'denied') {
|
else if (browserPermission === 'denied' && !isMobile) {
|
||||||
const toastId = 'browser-permission-denied-guide';
|
const toastId = 'browser-permission-denied-guide';
|
||||||
if (!toast.isActive(toastId)) {
|
if (!toast.isActive(toastId)) {
|
||||||
toast({
|
toast({
|
||||||
|
|||||||
Reference in New Issue
Block a user