feat: Enhance win effects and animations in OfflineView component

This commit is contained in:
2026-01-06 12:07:08 +01:00
parent 8aa07388ac
commit db5c70d02a
5 changed files with 16 additions and 12 deletions

View File

@@ -172,6 +172,9 @@ function setupSocketHandlers(socket: WebSocket) {
}
export function connectWebSocket(url?: string): Promise<void> {
if (!url) {
url = window.__RUNTIME_CONFIG__?.WEBSOCKET_URL
}
if (!url) {
const loc = window.location;
const protocol = loc.protocol === "https:" ? "wss:" : "ws:";