Commit 7880ff1e authored by Mahmoud Aglan's avatar Mahmoud Aglan

Add ?country=SA query param override for geo-pricing testing

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent dc364f0d
......@@ -81,12 +81,17 @@ document.addEventListener('DOMContentLoaded', () => {
injectRevealStyles();
injectDynamicStyles();
// Detect country and apply geo-pricing
detectCountry().then(country => {
if (country !== 'EG') {
applyGeoPricing(country);
}
});
// Detect country and apply geo-pricing (?country=SA override for testing)
const urlCountry = new URLSearchParams(window.location.search).get('country');
if (urlCountry) {
applyGeoPricing(urlCountry.toUpperCase());
} else {
detectCountry().then(country => {
if (country !== 'EG') {
applyGeoPricing(country);
}
});
}
});
/* ═══════════════════════════════════════════════
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment