Skip to content

Commit

Permalink
slow network brave browser default
Browse files Browse the repository at this point in the history
  • Loading branch information
danielacorner committed Feb 10, 2023
1 parent 80612ba commit c606307
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Home/HeroVideo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ const HeroStyles = styled.section`
z-index: ${Z_INDICES[1]};
}
`

const isBraveBrowser = (navigator.brave && await navigator.brave.isBrave() || false)

export default () => {
const isTabletOrLarger = useMediaQuery(`(min-width:${BREAKPOINTS.TABLET}px)`)
const doesFitFullWidthTitle = useMediaQuery(`(min-width:${914}px)`)
Expand All @@ -169,7 +172,7 @@ export default () => {
{({ width }) => (
<HeroStyles>
<div className="overflow-wrapper">
{isTabletOrLarger && !isSlowNetwork ? (
{isTabletOrLarger && !isSlowNetwork && !isBraveBrowser ? (
<div
style={{
transform: `scale(${Math.min(
Expand Down

0 comments on commit c606307

Please sign in to comment.