闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
230 B

  1. const LAYOUT_BREAKPOINT = 1024;
  2. export function isMobile(width) {
  3. return width <= LAYOUT_BREAKPOINT;
  4. };
  5. const iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
  6. export function isIOS() {
  7. return iOS;
  8. };