How can I handle different URLs in my Shopify app development?

I’m developing application, in the admin app the shop url is

xxx.myshopify.com

when I run the extension in the storefront, i get different url.

xxx.dk

I need to handle this case, the webhooks give me the shop as xxx.myshopify and not the domain (node).

in the storefront i can’t get the value as xxx.myshopify.com from the liquid variables?

Okay I found it, Shopify.shop using javascript and not liquid variables