proxy url building
This commit is contained in:
parent
7ab71eca51
commit
8cf23b91d7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user