I have two Domain in single store:

I have two Domain in single store:

Ahsan-ah-med
Shopify Partner
19 3 2

I Have two domain in my store and I setup two header in customizer then handle for user which domain visit for this code below then working fine but customizer is blank because "href " check url 


<script>
if(!window.location.href.includes("{{ section.settings.domain }}")){
document.getElementById('sid-{{ section.id }}').style.display = 'none';
}
</script>

Ahsan Ahmed
Shopify Developer | 2 Years of Experience
Shopify App Developer | 1 Year Experience
I'm Build Custom App for Client Requirements Using Shopify Functions, Shopify Checkout Ui Extensions, Remix App,
Transforming Websites into Shopify
 Converting Existing Websites (WooCommerce, Figma, Magento, etc.) to Shopify
️ Developing Custom Shopify Apps for Unique Client Needs
 Enhancing Shopify Functions with Checkout Extensions for Plus Users
Let's Build Your Dream Store Together!
Replies 0 (0)