mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: add all enroll users status in training (#456)
Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
1 parent
d02934f766
commit
c2f5541e83
12 files changed
+312
-156
No files matched your search
@@ -39,7 +39,7 @@ const onmessage = (msg) => {
|
||||
|
||||
const url = new URL(`${UiContext.ws_prefix}home/messages-conn`, window.location.href);
|
||||
// TODO handle a better way for cookie
|
||||
url.searchParams.append('sid', document.cookie);
|
||||
if (url.host !== window.location.host) url.searchParams.append('sid', document.cookie.split('sid=')[1].split(';')[0]);
|
||||
const endpoint = url.toString().replace('http', 'ws');
|
||||
|
||||
const initWorkerMode = () => {
|
||||
|
||||
Reference in new issue
Block a user