diff --git a/script.js b/script.js index 078fb35..8230588 100644 --- a/script.js +++ b/script.js @@ -530,8 +530,9 @@ var si = 0, if (bestServer) { [trialLoc, pricingLoc].forEach(function(el) { if (el) { + var cityVal = bestServer.host.replace('api.', '').replace('.odoo4projects.com', ''); for (var i = 0; i < el.options.length; i++) { - if (el.options[i].value === bestServer.host) { + if (el.options[i].value === cityVal) { el.selectedIndex = i; break; }