diff --git a/frontend/src/components/views/Header.tsx b/frontend/src/components/views/Header.tsx index 1bff99a..bc6008b 100644 --- a/frontend/src/components/views/Header.tsx +++ b/frontend/src/components/views/Header.tsx @@ -30,12 +30,18 @@ function NavItem({ href, children, dropdownId }: NavItemProps) { ); } -interface DropdownItemProps { - title: string; - children: ReactNode[]; -} - export function Header() { + const isSafari = + // @ts-ignore + /constructor/i.test(window.HTMLElement) || + (function (p) { + return p.toString() === "[object SafariRemoteNotification]"; + })( + !window["safari"] || + // @ts-ignore + (typeof safari !== "undefined" && safari.pushNotification) + ); + return (