do onpopstate a little differently for old Safari browsers

Safari is an old browser on Windows.
This commit is contained in:
cigamit committed 2015-07-03 17:18:53 -05:00
1 parent e099608bcc
commit b80d4d7cd5
1 file changed
+2 -2
+2 -2
View File
@@ -598,13 +598,13 @@ function ajaxAnchors() {
});
$(window).unbind('popstate').on('popstate', function(event) {
if (window.history.state !== null) {
if (event.state) {
href = document.location.href;
if (href !== null) {
document.location = href;
}
}
});
}, false);
}
function setupCollapsible() {