Return to the native entry screen after the final website account logs out

Hop-State: A_06FPG94PH3WVGZM2V10TNC0
Hop-Proposal: R_06FPG943E08MTNDQMWHA0E8
Hop-Task: T_06FPG80D8VVAEPFXY3F8WGR
Hop-Attempt: AT_06FPG80D8VE7RMJ24BEY3SR
This commit is contained in:
2026-07-15 16:37:36 -07:00
committed by Hop
parent 4a408edce8
commit 5ab1ac1a28
2 changed files with 89 additions and 3 deletions
+9
View File
@@ -245,6 +245,15 @@ function App() {
const [error, setError] = useState("");
useEffect(() => {
const launchParams = new URLSearchParams(window.location.search);
if (launchParams.has("signedOut")) {
localStorage.removeItem(SAVED_NODE_KEY);
window.history.replaceState({}, "", window.location.pathname);
setScreen("node");
setBootstrapping(false);
return;
}
const savedNode = localStorage.getItem(SAVED_NODE_KEY);
if (!savedNode || !isTauri()) {
setBootstrapping(false);