1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00

spoof url

This commit is contained in:
zumbiepig
2024-09-02 10:19:35 -07:00
parent bfa9977a8f
commit 71999367c6
11 changed files with 24 additions and 26 deletions

View File

@@ -3,7 +3,8 @@ window.addEventListener('load', () => {
const relayId = Math.floor(Math.random() * 3);
window.eaglercraftXOpts = {
container: 'game_frame',
assetsURI: 'assets.epk',
assetsURI: `${window.location.pathname}/assets.epk`,
localesURI: `${window.location.pathname}/lang/`,
servers: [{ addr: 'wss://eagler.xyz', name: 'TemuzX' }],
relays: [
{ addr: 'wss://relay.deev.is/', comment: 'lax1dude relay #1', primary: relayId === 0 },
@@ -15,5 +16,6 @@ window.addEventListener('load', () => {
const urlParams = new URLSearchParams(window.location.search);
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
history.replaceState({}, '', '/');
main();
});