Merge pull request #475 from Safelite/feature/CSR-550-2
force page reload on back button
This commit is contained in:
commit
4f54b2698a
1 changed files with 11 additions and 0 deletions
|
|
@ -24,7 +24,18 @@ const FMGAnimatedTransition = require("@/assets/img/FMGTransitionAnimation.svg")
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showModal() {
|
showModal() {
|
||||||
|
|
||||||
|
//Display modal
|
||||||
this.isModalVisible = true;
|
this.isModalVisible = true;
|
||||||
|
|
||||||
|
//Force page reload on back button
|
||||||
|
window.addEventListener("pageshow", function(evt) {
|
||||||
|
if(evt.persisted){
|
||||||
|
setTimeout(function(){
|
||||||
|
window.location.reload();
|
||||||
|
}, 10);
|
||||||
|
}
|
||||||
|
}, false);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue