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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user