mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-06 12:27:58 +02:00
fix settings history back
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -66,7 +66,10 @@
|
||||
|
||||
const selectTab = (id) => {
|
||||
active = id;
|
||||
window.location.hash = id;
|
||||
// replace the current history entry instead of pushing a new one, so
|
||||
// switching tabs does not stack up history and the back button leaves
|
||||
// the page rather than walking back through each visited tab
|
||||
history.replaceState(history.state, '', `#${id}`);
|
||||
};
|
||||
|
||||
const load = async () => {
|
||||
|
||||
@@ -53,7 +53,10 @@
|
||||
|
||||
const selectTab = (id) => {
|
||||
active = id;
|
||||
window.location.hash = id;
|
||||
// replace the current history entry instead of pushing a new one, so
|
||||
// switching tabs does not stack up history and the back button leaves
|
||||
// the page rather than walking back through each visited tab
|
||||
history.replaceState(history.state, '', `#${id}`);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user