From cf759633f53f3c237c24038348cbb42a8bfc636b Mon Sep 17 00:00:00 2001 From: LordCheta Date: Wed, 20 Nov 2024 14:42:11 +0100 Subject: [PATCH] chore: remove redundant code --- src/lib/utils.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 4409ba2d..95b5cfc1 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -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) -}