Your cart is currently empty!
Prevent safari loading the last page as the same when leave when navigating back
when press back button, safari will navigate to the page that is same as when we leave, we don’t want that, use this code!
window.onpageshow = function(event) {
if (event.persisted) {
window.location.reload()
}
};
发表回复