mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-23 19:37:52 +00:00
case
This commit is contained in:
parent
5074f79a5f
commit
943ce42486
@ -1044,12 +1044,17 @@ function App() {
|
|||||||
if(hasSettingsChanged){
|
if(hasSettingsChanged){
|
||||||
await showUnsavedChanges({message: 'Your settings have changed. If you logout you will lose your changes. Click on the save button in the header to keep your changed settings.'})
|
await showUnsavedChanges({message: 'Your settings have changed. If you logout you will lose your changes. Click on the save button in the header to keep your changed settings.'})
|
||||||
}
|
}
|
||||||
chrome?.runtime?.sendMessage({ action: "logout" }, (response) => {
|
window.sendMessage("logout", {})
|
||||||
|
.then((response) => {
|
||||||
if (response) {
|
if (response) {
|
||||||
resetAllStates();
|
resetAllStates();
|
||||||
executeEvent("logout-event", {});
|
executeEvent("logout-event", {});
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.error("Failed to log out:", error.message || "An error occurred");
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user