Skip to content

Commit

Permalink
chore: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
LordCheta committed Nov 20, 2024
1 parent 427f536 commit cf75963
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,3 @@ export const toFixed = (num: number | string, decimalPlaces = 8) => {
}

export const SHARED_MODAL_BOX_SHADOW_STYLE = '0px 0px 16.4px 0px rgba(229,107,26,0.68)'

export const isMobileOrTablet = (): boolean => {
if (typeof window === 'undefined') {
return false // Ensure the check only happens on the client side
}

const userAgent = navigator.userAgent || navigator.vendor
return /android|iphone|ipad|ipod|blackberry|windows phone|mobile/i.test(userAgent)
}

0 comments on commit cf75963

Please sign in to comment.