This commit is contained in:
@@ -85,10 +85,11 @@ export default function ServerConsolePage() {
|
||||
const { token, ws_path } = await api.connectConsole(body);
|
||||
|
||||
const wsProto = location.protocol === "https:" ? "wss" : "ws";
|
||||
const wsUrl = `${wsProto}://${location.host}${ws_path}?token=${encodeURIComponent(token)}`;
|
||||
const wsUrl = `${wsProto}://${location.host}${ws_path}`;
|
||||
const connectData = `token=${encodeURIComponent(token)}`;
|
||||
|
||||
if (containerRef.current) {
|
||||
const conn = openConsole(containerRef.current, wsUrl);
|
||||
const conn = openConsole(containerRef.current, wsUrl, connectData);
|
||||
connectionRef.current = conn;
|
||||
setConnected(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user