var myArray = [];
if(document.getElementById("mo_openid_login")){
document.getElementById("mo_openid_login").insertAdjacentHTML("beforebegin", "
");
}else if(document.getElementById("customer_login")){
document.getElementById("customer_login").insertAdjacentHTML("beforebegin", "");
}else if(document.getElementById("RegisterForm")){
document.getElementById("RegisterForm").insertAdjacentHTML("beforebegin", "");
}
document.head.insertAdjacentHTML("afterbegin","");
document.head.insertAdjacentHTML("afterbegin","");
document.head.insertAdjacentHTML("afterbegin","");
myArray.reverse().forEach(function (value) {
if(document.getElementById("mo_openid_login")){
document.getElementById("mo_openid_login").insertAdjacentHTML("afterbegin"," login with "+value[0].toUpperCase()+value.slice(1)+"
")
}
});var curr = window.ShopifyAnalytics.meta.page.customerId; console.log(curr);
var url = "https://shop.miniorange.com/discord_login/public/discord_role?shop=animink-ltd.myshopify.com&customer_id="+window.ShopifyAnalytics.meta.page.customerId+"";
var xhr = new XMLHttpRequest();
xhr.open("GET", url);
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
console.log(xhr.status);
console.log(xhr.responseText);
}};
xhr.send();