From b80d4d7cd5ebfb8c0e0d3c293eb02a077e1828fa Mon Sep 17 00:00:00 2001 From: cigamit Date: Fri, 3 Jul 2015 17:18:53 -0500 Subject: [PATCH] do onpopstate a little differently for old Safari browsers Safari is an old browser on Windows. --- include/layout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/layout.js b/include/layout.js index 97fe7ff5b..593a5d279 100644 --- a/include/layout.js +++ b/include/layout.js @@ -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() {