mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 06:01:56 -07:00
b68a53eb53
Intercept .nav-dashboard-btn clicks to perform SPA-style navigation instead of a full page reload. After switchMode() updates the URL to /?mode=<x> via pushState, clicking href="/" previously caused a round- trip reload. Now the click handler stops active scans, destroys the current mode, shows the welcome overlay, and pushes '/' onto history. Also update popstate to restore the welcome page when navigating back to '/' with no mode param. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>