Mercurial Hosting > luan
view website/src/site.js @ 2170:a59d0bf68830 default tip
handle multiple cookie headers
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 17 Feb 2026 22:24:02 -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; }
