view website/src/site.js @ 2092:429827024f4e ssltesting tip

inline local_https.sh + minor
author Violet7
date Fri, 12 Dec 2025 18:53:15 -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;
}