Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused code #1777

Merged
merged 1 commit into from
May 29, 2023
Merged

Conversation

yanCode
Copy link
Contributor

@yanCode yanCode commented May 29, 2023

this PR is to remove a unused function:

export function isMobileScreen() {
  if (typeof window === "undefined") {
    return false;
  }
  return window.innerWidth <= MOBILE_MAX_WIDTH;
}

because the actual isMobileScreen is from the useMobileScreen custom hook. with the same name, this function can be confusing.

@Yidadaa Yidadaa merged commit 6b5e5a1 into ChatGPTNextWeb:main May 29, 2023
1 check passed
xuzhenjun130 pushed a commit to xuzhenjun130/ChatGPT-Next-Web that referenced this pull request May 31, 2023
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants