Move websocket preconnect earlier into startup

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
Fedor Indutny
2025-04-07 12:16:06 -07:00
committed by GitHub
parent cc4470bb6f
commit f4185e65dc
5 changed files with 102 additions and 83 deletions

View File

@@ -10,7 +10,7 @@ export function isStagingServer(
if (getEnvironment() === Environment.Staging) {
return true;
}
if (isStaging(window.getVersion())) {
if (isStaging(window.SignalContext.getVersion())) {
return true;
}
return /staging/i.test(serverUrl);