Do not push history state. The browser already handles back properly (#878)

This commit is contained in:
Zach Toolson 2017-09-13 22:17:16 -06:00 committed by Robert Lord
parent e97630b186
commit 95f924fd0d

View file

@ -76,9 +76,6 @@
$best.siblings(tocListSelector).addClass("active");
$toc.find(tocListSelector).filter(":not(.active)").slideUp(150);
$toc.find(tocListSelector).filter(".active").slideDown(150);
if (window.history.pushState) {
window.history.pushState(null, "", best);
}
// TODO remove classnames
document.title = $best.data("title") + " " + originalTitle;
}