+22
-1
@@ -556,6 +556,22 @@ function renderSettingsForm() {
|
||||
<input type="number" id="dashboardRefreshMs" min="1000" max="10000" step="500" value="${s.dashboardRefreshMs ?? 2000}" style="width:100px">
|
||||
</div>
|
||||
</div>
|
||||
<div class="settings-group">
|
||||
<h3>About</h3>
|
||||
<p class="muted" style="font-size:0.8rem;margin:0 0 0.5rem">
|
||||
BridgeSwarm — Hyperswarm in the browser via a Bare native messaging host.
|
||||
</p>
|
||||
<p class="muted" style="font-size:0.8rem;margin:0 0 0.5rem">
|
||||
Version: <span class="mono" id="aboutVersion">—</span> · License: <span class="mono">AGPL-3.0</span>
|
||||
</p>
|
||||
<p class="muted" style="font-size:0.8rem;margin:0 0 0.5rem">
|
||||
Owned and engineered by <strong style="color:var(--text)">HoneyPeer, LLC</strong>
|
||||
(DeKalb County, Georgia, USA).
|
||||
</p>
|
||||
<p class="muted" style="font-size:0.8rem;margin:0">
|
||||
Legal: <a href="mailto:[email protected]">[email protected]</a>
|
||||
</p>
|
||||
</div>
|
||||
<p class="muted" style="font-size:0.75rem">Settings autosave. Reset restores defaults including examples server off.</p>
|
||||
`;
|
||||
|
||||
@@ -565,6 +581,8 @@ function renderSettingsForm() {
|
||||
$('toggleExamplesServer')?.classList.toggle('active', s.examplesServerEnabled === true);
|
||||
const fw = $('defaultFirewallMode');
|
||||
if (fw) fw.value = s.defaultFirewallMode || 'off';
|
||||
const ver = chrome.runtime.getManifest?.().version;
|
||||
if (ver && $('aboutVersion')) $('aboutVersion').textContent = ver;
|
||||
|
||||
root.querySelectorAll('.toggle').forEach((toggle) => {
|
||||
toggle.addEventListener('click', () => {
|
||||
@@ -703,7 +721,10 @@ function loadSettings() {
|
||||
renderSettingsForm();
|
||||
scheduleRefreshLoop();
|
||||
const ver = chrome.runtime.getManifest?.().version;
|
||||
if (ver) $('extVersion').textContent = 'v' + ver;
|
||||
if (ver) {
|
||||
if ($('extVersion')) $('extVersion').textContent = 'v' + ver;
|
||||
if ($('aboutVersion')) $('aboutVersion').textContent = ver;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user