(function() {
const urlParams = new URLSearchParams(window.location.search);
const ref = urlParams.get('ref');
if (ref) {
localStorage.setItem('referral_code', ref);
}
})();
Skip to content
document.addEventListener("DOMContentLoaded", function () {
const ref = localStorage.getItem("referral_code");
if (ref) {
const referralField = document.querySelector("input[name='referral']");
if (referralField) {
referralField.value = ref;
}
}
});