From e34aefa79980a973363b6306e86168bce55187b3 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Thu, 2 Apr 2026 19:00:37 -0700 Subject: [PATCH] feat: reload button in sidebar footer Adds a "reload" button next to "debug" and "clear" in the sidebar footer. Calls location.reload() to fully refresh the side panel, re-run connection logic, and clear stale state. --- extension/sidepanel.html | 1 + extension/sidepanel.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/extension/sidepanel.html b/extension/sidepanel.html index 019c7fa9..8b013715 100644 --- a/extension/sidepanel.html +++ b/extension/sidepanel.html @@ -154,6 +154,7 @@ `; }); +// ─── Reload Sidebar ───────────────────────────────────────────── +document.getElementById('reload-sidebar').addEventListener('click', () => { + location.reload(); +}); + // ─── Debug Tabs ───────────────────────────────────────────────── const debugToggle = document.getElementById('debug-toggle');