Skip to content

Commit

Permalink
Safari test auth code
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikMatiasko committed Jul 10, 2024
1 parent 709ab4e commit 49a3f3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Atomic/_utils/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ import { BotInfo, BrowserInfo, NodeInfo, ReactNativeInfo, SearchBotDeviceInfo }

export const isEdge = (browser: BrowserInfo | SearchBotDeviceInfo | BotInfo | NodeInfo | ReactNativeInfo | null) =>
browser && ['edge', 'edge-chromium'].includes(browser.name)

export const isSafari = (browser: BrowserInfo | SearchBotDeviceInfo | BotInfo | NodeInfo | ReactNativeInfo | null) => browser && browser.name === 'safari'

0 comments on commit 49a3f3f

Please sign in to comment.