force page reload on back button

This commit is contained in:
Mark Harris 2022-05-19 08:40:46 -04:00
parent ab5a5a0968
commit b90f6a46bf

View file

@ -24,7 +24,18 @@ const FMGAnimatedTransition = require("@/assets/img/FMGTransitionAnimation.svg")
},
methods: {
showModal() {
//Display modal
this.isModalVisible = true;
//Force page reload on back button
window.addEventListener("pageshow", function(evt) {
if(evt.persisted){
setTimeout(function(){
window.location.reload();
}, 10);
}
}, false);
},
},
};