The Environment API provides utilities for information regarding the environment an embedded app is running on.
shopify.environment;
// => { mobile: false, embedded: true, pos: false }
The `environment` API is available on the `shopify` global. It contains information about the current environment an embedded app is running on.
Whether the app is embedded in the Shopify admin.
Whether the app is running on Shopify Mobile.
Whether the app is running on Shopify POS.