2024-02-14 20:52:11 -08:00
|
|
|
"use strict";
|
2024-07-04 00:39:59 -07:00
|
|
|
${classes_js}
|
2024-02-14 20:52:11 -08:00
|
|
|
|
|
|
|
// %%%%%%%%% launch options %%%%%%%%%%%%
|
|
|
|
|
|
|
|
if(typeof window !== "undefined") {
|
|
|
|
window.eaglercraftXClientScriptElement = document.currentScript;
|
|
|
|
if(window.eaglercraftXOptsHints && window.eaglercraftXOptsHints.hintsVersion === 1) {
|
|
|
|
window.eaglercraftXOpts = window.eaglercraftXOptsHints;
|
|
|
|
}else {
|
2024-09-21 22:29:10 -07:00
|
|
|
var relayzId = Math.floor(Math.random() * 3);
|
2024-02-14 20:52:11 -08:00
|
|
|
window.eaglercraftXOpts = {
|
|
|
|
container: "game_frame",
|
|
|
|
worldsDB: "worlds",
|
|
|
|
relays: [
|
|
|
|
{ addr: "wss://relay.deev.is/", comment: "lax1dude relay #1", primary: relayzId === 0 },
|
|
|
|
{ addr: "wss://relay.lax1dude.net/", comment: "lax1dude relay #2", primary: relayzId === 1 },
|
|
|
|
{ addr: "wss://relay.shhnowisnottheti.me/", comment: "ayunami relay #1", primary: relayzId === 2 }
|
|
|
|
],
|
|
|
|
checkRelaysForUpdates: true
|
|
|
|
};
|
|
|
|
}
|
2024-09-21 22:29:10 -07:00
|
|
|
window.addEventListener("load", function() {
|
2024-02-14 20:52:11 -08:00
|
|
|
main();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
2024-09-21 22:29:10 -07:00
|
|
|
if(typeof window !== "undefined") { window.eaglercraftXOpts.enableSignatureBadge = true; window.eaglercraftXOpts.assetsURI = ${assets_epk}; main(); }
|