Skip to content

Commit

Permalink
Merge pull request #732 from HolodexNet/revert-725-feature/navigation…
Browse files Browse the repository at this point in the history
…-based-on-history-for-sub-tabs

Revert "Feature: navigation based on history for sub tabs"
  • Loading branch information
NeloBlivion authored Oct 14, 2023
2 parents bd61d50 + 240ed42 commit ead502b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/views/HomeFave.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,13 @@ export default {
console.log("Activated, so adding refresh timer to HomeFav");
this.changeTab(true);
this.setAutoRefresh();
window.onpopstate = () => { this.init(); };
},
deactivated() {
if (this.refreshTimer) {
console.log("Navigating away, so deleting the refresh timer in HomeFav");
clearInterval(this.refreshTimer);
this.refreshTimer = null;
}
window.onpopstate = () => { };
},
beforeDestroy() {
console.log("Destroying, so deleting the refresh timer in HomeFav");
Expand Down Expand Up @@ -214,7 +212,7 @@ export default {
3: "list",
};
this.$router
.push({
.replace({
// set page to 0 if on scroll mode
query: preservePage && {
...this.$route.query,
Expand Down

0 comments on commit ead502b

Please sign in to comment.