Add inline script after banner link to set ref immediately on DOM parse — fixes race condition
This commit is contained in:
@@ -1035,6 +1035,12 @@
|
|||||||
<a id="bannerRefLink" href="https://clickbaitpays.me/?ref=cryptoteambuild" target="_blank" rel="noopener">
|
<a id="bannerRefLink" href="https://clickbaitpays.me/?ref=cryptoteambuild" target="_blank" rel="noopener">
|
||||||
<img src="https://git.saasy.top/marty/cbp-calculator/raw/branch/main/hero-banner.jpg" alt="Join the Crypto Team Build Network — Build the ClickBaitPays team project with us" />
|
<img src="https://git.saasy.top/marty/cbp-calculator/raw/branch/main/hero-banner.jpg" alt="Join the Crypto Team Build Network — Build the ClickBaitPays team project with us" />
|
||||||
</a>
|
</a>
|
||||||
|
<script>
|
||||||
|
(function(){
|
||||||
|
var ref = new URLSearchParams(window.location.search).get('ref');
|
||||||
|
if (ref) document.getElementById('bannerRefLink').href = 'https://clickbaitpays.me/?ref=' + encodeURIComponent(ref);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- CTA -->
|
<!-- CTA -->
|
||||||
|
|||||||
Reference in New Issue
Block a user