Mercurial Hosting > luan
view website/src/site.js @ 2048:59f3a7f3d10b acme-tiny tip
add check for local_https in renewSsl.sh
| author | Violet7 |
|---|---|
| date | Tue, 11 Nov 2025 01:45:02 -0800 |
| 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; }
