forked from mil1dude/source-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSignedBundleTemplate.txt
More file actions
30 lines (26 loc) · 1.07 KB
/
SignedBundleTemplate.txt
File metadata and controls
30 lines (26 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"use strict";
${classes_js}
// %%%%%%%%% launch options %%%%%%%%%%%%
if(typeof window !== "undefined") {
window.eaglercraftXClientScriptElement = document.currentScript;
if(window.eaglercraftXOptsHints && window.eaglercraftXOptsHints.hintsVersion === 1) {
window.eaglercraftXOpts = window.eaglercraftXOptsHints;
}else {
var relayzId = Math.floor(Math.random() * 3);
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
};
}
window.addEventListener("load", function() {
main();
});
}
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if(typeof window !== "undefined") { window.eaglercraftXOpts.enableSignatureBadge = true; window.eaglercraftXOpts.assetsURI = ${assets_epk}; main(); }