Mercurial Hosting > luan
view website/src/site.js @ 2093:c0847b30833f ssltesting
mv https.luan Https.luan
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sat, 13 Dec 2025 20:25:56 -0700 |
| parents | 31f006c64782 |
| children |
line wrap: on
line source
'use strict'; function setLanguage(lang) { console.log(lang); let path = location.pathname; if( path.match(/^\/[a-z]{2}\//) ) path = path.substring(3); if( lang !== 'en' ) path = "/" + lang + path; location = path; }
