Files
justice/www/html/Game/public/LOBBY-FIX-PASTE.txt
T
2026-05-27 08:02:22 +00:00

15 lines
940 B
Plaintext

If room-lobby is BLACK on localhost, paste this as FIRST script in room-lobby.html (before app-base.js):
<script>
(function(){var P='https://srv1361159.hstgr.cloud',PG=P+'/Game',h=(location.hostname||'').toLowerCase();
if(h!=='localhost'&&h!=='127.0.0.1')return;
window.GAME_NODE_ORIGIN=P;window.GAME_SERVER=P;window.GAME_API_FETCH_BASE=PG;
if(window.fetch&&!window.__JD_RL_FETCH__){window.__JD_RL_FETCH__=1;var f=window.fetch.bind(window);
var bad=/^https?:\/\/(?:localhost|127\.0\.0\.1):(3004|3001|3010|13010)\/Game/i;
window.fetch=function(u,o){if(typeof u==='string'&&bad.test(u))u=PG+u.slice(u.indexOf('/Game')+5);return f(u,o);};}
document.write('<script src="'+P+'/Game/socket.io/socket.io.js"><\/script>');})();
</script>
PowerShell (if SSL error, add -UseBasicParsing):
Invoke-WebRequest "https://srv1361159.hstgr.cloud/Game/room-lobby.html" -OutFile "C:\AppServ\www\srv1361159.hstgr.cloud\Game\room-lobby.html" -UseBasicParsing