SHA256
Вынести дефолтный сервер в конфиг UI и оживить счетчик пароля
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { captureClientError } from './client-error-reporter.js';
|
||||
import { defaultServerWs } from '../deploy-config.js';
|
||||
|
||||
const DEFAULT_TIMEOUT_MS = 12000;
|
||||
|
||||
function buildWsUrl(raw) {
|
||||
const value = (raw || '').trim();
|
||||
if (!value) return 'wss://shineup.me/ws';
|
||||
if (!value) return defaultServerWs;
|
||||
if (value.startsWith('/')) {
|
||||
const secure = window.location.protocol === 'https:';
|
||||
const scheme = secure ? 'wss' : 'ws';
|
||||
|
||||
Reference in New Issue
Block a user