Update #37 - Touch support without userscript, many other feats

This commit is contained in:
lax1dude
2024-09-21 20:17:42 -07:00
parent 173727c8c4
commit ec1ab8ece3
683 changed files with 62074 additions and 8996 deletions

View File

@ -8,7 +8,7 @@ if(typeof window !== "undefined") {
if(window.eaglercraftXOptsHints && window.eaglercraftXOptsHints.hintsVersion === 1) {
window.eaglercraftXOpts = window.eaglercraftXOptsHints;
}else {
const relayzId = Math.floor(Math.random() * 3);
var relayzId = Math.floor(Math.random() * 3);
window.eaglercraftXOpts = {
container: "game_frame",
worldsDB: "worlds",
@ -20,15 +20,11 @@ if(typeof window !== "undefined") {
checkRelaysForUpdates: true
};
}
window.addEventListener("load", () => {
window.addEventListener("load", function() {
main();
});
}
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if(typeof window !== "undefined") { window.eaglercraftXOpts.enableSignatureBadge = true; window.eaglercraftXOpts.assetsURI = ${assets_epk}; }
if(typeof window !== "undefined") setTimeout(() => {
main();
}, 0);
if(typeof window !== "undefined") { window.eaglercraftXOpts.enableSignatureBadge = true; window.eaglercraftXOpts.assetsURI = ${assets_epk}; main(); }