Files
holesail-browser/extension/dashboard/core/state.js
T
Raven Scott 32cd108480
CI / Build & Test (push) Successful in 2m54s
fix(settings): fix latency ping and tunnel auto-reconnect defaults
- 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
2026-03-01 01:10:59 -05:00

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 };