Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save remy727/9afd721a8b1e2959e7ae38a9a57caef9 to your computer and use it in GitHub Desktop.
Save remy727/9afd721a8b1e2959e7ae38a9a57caef9 to your computer and use it in GitHub Desktop.
Detect the client's device using Shopify App Bridge Utilities
import {
isShopifyEmbedded,
isMobile,
isShopifyMobile,
isShopifyPOS
} from '@shopify/app-bridge/utilities';
const onShopifyEmbedded = isShopifyEmbedded();
const onMobile = isMobile();
const onShopifyMobile = isShopifyMobile();
const onShopifyPOS = isShopifyPOS();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment