mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Safari 7 changed popstate behavior
This commit is contained in:
parent
faabdad04e
commit
25755efeee
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue