mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
* feat: add notification system with hotkey events and permission handling * Add macOS-specific handling for AppHidden notification Introduces conditional support for the AppHidden notification event, enabling macOS-specific behavior. Updates the enum and notification logic to include this platform-specific feature. Improves macOS user experience by accommodating system-level application hiding events. * Implement feature X to enhance user experience and fix bug Y in module Z * refactor(notification): update notification keys for consistency and clarity * chore(deps): update dependencies to latest versions
9 lines
229 B
TypeScript
9 lines
229 B
TypeScript
import { setupNotificationPermission } from "../utils/notification-permission";
|
|
import { useEffect } from "react";
|
|
|
|
export function useNotificationPermission() {
|
|
useEffect(() => {
|
|
setupNotificationPermission();
|
|
}, []);
|
|
}
|