FIX: Safari 7 changed popstate behavior
This commit is contained in:
parent
faabdad04e
commit
25755efeee
|
@ -43,7 +43,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onpopstate = function(event) {
|
window.onpopstate = function(event) {
|
||||||
if (!window.hasOwnProperty("Discourse")) { //check if Discourse object exists if not take care of back navigation
|
if (event.state && !window.hasOwnProperty("Discourse")) { //check if Discourse object exists if not take care of back navigation
|
||||||
window.location = document.location;
|
window.location = document.location;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue