diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/cao-config.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/cao-config.js b/webapp/cao-config.js index 2082e3a..ddfe0fc 100644 --- a/webapp/cao-config.js +++ b/webapp/cao-config.js @@ -3,9 +3,9 @@ $(document).ready(function() { var hostname = document.location.hostname; /* XXX replace this with your desired behaviour */ - if (hostname.startsWith('fr.')) { + if (hostname.substring(0, 3) === 'fr.') { lang = 'fr'; - } else if (hostname.startsWith('en.')) { + } else if (hostname.substring(0, 3) === 'en.') { lang = 'en'; } |