Browser Zurück/Vor-Navigation: pushState statt replaceState, popstate-Event
This commit is contained in:
1 parent
4e7058e481
commit
485f47b29a
4 files changed
+27
-12
No files matched your search
@@ -166,7 +166,7 @@ registerPage('chat', {
|
||||
// Zurück zum Dashboard
|
||||
const backBtn = document.getElementById('chatBackBtn');
|
||||
if (backBtn) {
|
||||
backBtn.addEventListener('click', () => navigateTo('dashboard'));
|
||||
backBtn.addEventListener('click', () => history.back());
|
||||
}
|
||||
|
||||
// Send / Stop
|
||||
|
||||
Reference in new issue
Block a user