v0.02: proxy overhaul, form intercept, base href removal, window.location patch, version badge
This commit is contained in:
1 parent
3ce02f3d55
commit
0992bf6e1d
1 file changed
+10
@@ -222,6 +222,9 @@
|
||||
<div class="sidebar-list" id="peer-list">
|
||||
<div style="padding:20px; text-align:center; color:var(--muted);"><div class="spinner"></div></div>
|
||||
</div>
|
||||
<div id="version-badge" style="padding:10px 14px; font-size:10px; color:var(--muted); border-top:1px solid var(--border); text-align:center;">
|
||||
TailScan <span id="version-str">...</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main -->
|
||||
@@ -738,6 +741,13 @@ function showError(msg) {
|
||||
</div>`;
|
||||
}
|
||||
|
||||
// ── Version ───────────────────────────────────────────────────────────────────
|
||||
|
||||
fetch('/api/version').then(r=>r.json()).then(d=>{
|
||||
const el = document.getElementById('version-str');
|
||||
if (el) el.textContent = 'v' + d.version;
|
||||
}).catch(()=>{});
|
||||
|
||||
// ── Init ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
(async () => {
|
||||
|
||||
Reference in new issue
Block a user