CI / Build & Test (push) Successful in 2m54s
- Default latencyPingEnabled to false so badges are hidden until opted in - Fix toggleLatencyPing sync condition from !== false to === true to match the new default correctly - Default tunnelAutoReconnect to true so tunnels reconnect automatically out of the box - Hide latency badges in virtual hosts and service tunnels tables when latency ping is disabled
21 lines
532 B
JavaScript
21 lines
532 B
JavaScript
// Central mutable state for the dashboard.
|
|
// All modules read/write these variables directly (plain-script shared globals).
|
|
|
|
const SETTINGS_DEFAULTS = {
|
|
proxyPort: 8443,
|
|
connectProxyPort: 8442,
|
|
readyTimeoutMs: 30000,
|
|
notifyOnDisconnect: true,
|
|
notifyOnTunnelError: true,
|
|
debug: false,
|
|
disableOnFileUrls: false,
|
|
backupRetention: 5,
|
|
backupIntervalHours: 0,
|
|
tunnelAutoReconnect: true,
|
|
latencyPingEnabled: false,
|
|
latencyPingIntervalMs: 5000
|
|
};
|
|
|
|
let currentState = null;
|
|
let settings = { ...SETTINGS_DEFAULTS };
|