11 lines
308 B
JavaScript
11 lines
308 B
JavaScript
|
(function () {
|
||
|
const currentUrl = window.location.href;
|
||
|
const event_code = currentUrl.split('/')[5];
|
||
|
//console.log(currentUrl);
|
||
|
//console.log(event_code);
|
||
|
if(event_code){
|
||
|
let new_url = "https://tixcraft.com/activity/game/"+ event_code;
|
||
|
location.href=new_url;
|
||
|
}
|
||
|
})();
|