disable ws for Consulate and better messaging for 0.2.x update

This commit is contained in:
Matt Hill
2021-12-08 21:32:52 -07:00
committed by Aiden McClelland
parent 45f0adde18
commit cfa4055053
13 changed files with 66 additions and 69 deletions

View File

@@ -37,7 +37,8 @@ export class ConfigService {
mocks = mocks
skipStartupAlerts = mocks.enabled && mocks.skipStartupAlerts
supportsWebSockets = 'WebSocket' in window || 'MozWebSocket' in window
isConsulate = window['platform'] === 'ios'
supportsWebSockets = !!window.WebSocket || this.isConsulate
isTor (): boolean {
return (mocks.enabled && mocks.maskAs === 'tor') || this.origin.endsWith('.onion')