const environment = 'production' // environment var is added on deploy :( let url = 'https://cdn.one.store' try { switch (environment) { case 'production': url = 'https://cdn.one.store' break case 'develop': url = 'https://cdn-develop.one.store' break case 'staging': url = 'https://cdn-staging.one.store' } } catch (e) {} window['ONE_POP_UPS_EXTENSION_ENABLED'] = true if (window['PROOF_FACTOR_WIDGET_SCRIPT_LOADED'] === undefined || window['PROOF_FACTOR_WIDGET_SCRIPT_LOADED'] === false) { const oneJS = document.createElement('script'); oneJS.type = 'text/javascript'; oneJS.src = `${url}/javascript/dist/1.0/jcr-widget.js?account_id=shopify:${Shopify.shop}&shop=${Shopify.shop}`; oneJS.setAttribute('defer', ''); document.head.appendChild(oneJS); }