Skip to content
Snippets Groups Projects
Commit e2bb9dde authored by echicken's avatar echicken :chicken:
Browse files

If 'code' query param exists, is a valid xtrn code, and user can access, then...

If 'code' query param exists, is a valid xtrn code, and user can access, then jump right into it after the page loads. (Requested by Mortifis.)
parent 78a728f0
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -95,4 +95,7 @@ ...@@ -95,4 +95,7 @@
$(e).show(); $(e).show();
}); });
<? if (http_request.query.code !== undefined && xtrn_area.prog[http_request.query.code[0]] !== undefined && xtrn_area.prog[http_request.query.code[0]].can_access) { ?>
window.addEventListener('load', () => launchXtrn('<? write(http_request.query.code[0]); ?>'));
<? } ?>
</script> </script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment