Hi there,
How to display or at least detect your app is loading outside of Shopify when developing an embedded app?
Regards,
Sam
Solved! Go to the solution
I think you can check following code to detect
if (window.top == window.self) {
//Not in App } else{ //In App }
This is an accepted solution.
Thanks @ashukasma ,
That gives us the results we want.
Regards,
Sam
User | Count |
---|---|
14 | |
10 | |
9 | |
7 | |
5 |