diff options
Diffstat (limited to 'theme/javascript/core')
-rwxr-xr-x | theme/javascript/core/navigation.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js index 1b51907..baf53e7 100755 --- a/theme/javascript/core/navigation.js +++ b/theme/javascript/core/navigation.js @@ -10,12 +10,14 @@ define([ var prev, next; var githubCountStars, githubCountWatch; + var usePushState = !navigator.userAgent.match('CriOS') && (typeof history.pushState !== "undefined"); + var updateHistory = function(url, title) { history.pushState({ path: url }, title, url); }; var handleNavigation = function(url, push) { - if (typeof history.pushState === "undefined") { + if (!usePushState) { // Refresh the page to the new URL if pushState not supported location.href = url; return |