From 7ac03b4d89a3eb775781554c5cc9fd7393c503fe Mon Sep 17 00:00:00 2001 From: "ShengYan, Zhang" Date: Mon, 29 May 2023 09:54:02 +0800 Subject: [PATCH] chore: remove unused code --- app/utils.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/utils.ts b/app/utils.ts index a272d568..120b1e15 100644 --- a/app/utils.ts +++ b/app/utils.ts @@ -98,13 +98,6 @@ export function useMobileScreen() { return width <= MOBILE_MAX_WIDTH; } -export function isMobileScreen() { - if (typeof window === "undefined") { - return false; - } - return window.innerWidth <= MOBILE_MAX_WIDTH; -} - export function isFirefox() { return ( typeof navigator !== "undefined" && /firefox/i.test(navigator.userAgent)