2024-01-18 17:35:42 +00:00
|
|
|
const currentUrl = window.location.href;
|
|
|
|
const event_code = currentUrl.split('/')[5];
|
|
|
|
//console.log(currentUrl);
|
|
|
|
//console.log(event_code);
|
|
|
|
if(event_code){
|
|
|
|
const domain = currentUrl.split('/')[2];
|
|
|
|
const new_url = "https://"+ domain +"/activity/game/"+ event_code;
|
|
|
|
location.href=new_url;
|
|
|
|
}
|