FIX: Safari 7 changed popstate behavior

This commit is contained in:
Robin Ward 2014-12-19 10:56:19 -05:00
parent faabdad04e
commit 25755efeee
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
};