Mercurial Hosting > luan
view website/src/site.js @ 2154:03d4c892b436 nginx_sites_addon
include nginx_sites ssl files; use absolute paths in Https.luan:nginx_ssl_conf()
| author | Violet7 |
|---|---|
| date | Tue, 27 Jan 2026 18:54:59 -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; }
