) {
                        const newUrl = window.location.protocol + "//" + window.location.host + window.location.pathname;
                        window.history.replaceState({}, document.title, newUrl);
                    }
                    return;
                }
            }

            // Check session storage
            const savedUser = localStorage.getItem('zhtpUser');
            const savedWalletSession = localStorage.getItem('zhtpWallet');
            
            if (savedUser && save