Merge pull request #475 from Safelite/feature/CSR-550-2

force page reload on back button
This commit is contained in:
Mark Harris 2022-05-19 08:44:28 -04:00 committed by GitHub
commit 4f54b2698a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
},
},
};