Closed Rafi993 closed 1 year ago
The util
import { isShopifyEmbedded } from '@shopify/app-bridge/utilities';
returns true when it is called inside any iFrame not just the Shopify admin page
iShopifyEmbedded should return true only if it renders inside the Shopify admin (or POS) iFrame not a random iFrame
iShopifyEmbedded
true
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge-react
^3.7.9
What's your use case for rendering in an iframe but not in the Admin?
iframe
Closing this off since this is not a real issue anymore.
Describe the bug
The util
returns true when it is called inside any iFrame not just the Shopify admin page
Expected behaviour
iShopifyEmbedded
should returntrue
only if it renders inside the Shopify admin (or POS) iFrame not a random iFrameContextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge-react
@^3.7.9
,