mirror of
https://github.com/Octops/quake-kube.git
synced 2026-04-11 04:10:33 +00:00
Fixes for running with https frontend (#20)
* use browser protocol * Update zz_generated.static.go * set host args with proper port * Update zz_generated.static.go * use proper protocol for the websocket
This commit is contained in:
@ -135,7 +135,7 @@
|
||||
localStorage.setItem("playerName", inputPlayerName.value);
|
||||
}
|
||||
host = document.location.host
|
||||
if (!host.includes(":")) { host = host + ":80" }
|
||||
if (!host.includes(":")) { host = host + (window.location.protocol == 'https:' ? ":443" : ":80") }
|
||||
var args = ['+set', 'fs_cdn', host, '+connect', host];
|
||||
args.push.apply(args, ['+set', 'cl_allowDownload', '1'])
|
||||
args.push.apply(args, ['+set', 'cl_timeout', '15'])
|
||||
|
||||
Reference in New Issue
Block a user