mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Safari 7 changed popstate behavior
This commit is contained in:
parent
faabdad04e
commit
25755efeee
@ -43,7 +43,7 @@
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user