proxy url building

This commit is contained in:
BuckarooBanzay 2023-09-21 07:43:36 +02:00
parent 7ab71eca51
commit 8cf23b91d7

View File

@ -67,7 +67,7 @@ export function execute(args) {
emloop_init_sound();
emsocket_init();
emsocket_set_proxy(allocateUTF8(location.href.replace("http", "ws") + "proxy"));
emsocket_set_proxy(allocateUTF8(location.protocol.replace("http", "ws") + "//" + location.host + location.pathname + "proxy"));
const width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
const height = window.innerHeight|| document.documentElement.clientHeight|| document.body.clientHeight;