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', () => { ...@@ -81,12 +81,17 @@ document.addEventListener('DOMContentLoaded', () => {
injectRevealStyles(); injectRevealStyles();
injectDynamicStyles(); injectDynamicStyles();
// Detect country and apply geo-pricing // Detect country and apply geo-pricing (?country=SA override for testing)
detectCountry().then(country => { const urlCountry = new URLSearchParams(window.location.search).get('country');
if (country !== 'EG') { if (urlCountry) {
applyGeoPricing(country); 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