diff --git a/demo/free-mint.js b/demo/free-mint.js index c65338e..0f41255 100644 --- a/demo/free-mint.js +++ b/demo/free-mint.js @@ -39,8 +39,14 @@ export function initFreeMintCampaign(){ const promoteCampaign=()=>{ const landing=document.querySelector(".chainling-landing"); - if(!landing)return false; - landing.insertAdjacentElement("afterend",section); + const paidMint=document.querySelector(".hero"); + if(paidMint){ + paidMint.insertAdjacentElement("beforebegin",section); + }else if(landing){ + landing.insertAdjacentElement("afterend",section); + }else{ + return false; + } const copy=landing.querySelector(".landing-copy"); if(copy&&!copy.querySelector(".landing-free-callout")){ copy.insertAdjacentHTML("afterbegin",'LIMITED FREE MINT#6 Aqua Kingfisher · 8,888 supply · 1 per wallet');