toc.js: fix wrong urls

This commit is contained in:
Matthias Kretschmann 2016-03-12 19:21:23 +01:00
parent 67fd915c24
commit 5580ae658d
1 changed files with 1 additions and 5 deletions

View File

@ -25,11 +25,7 @@
var hash = el.attr('id');
if (hash.length) {
if (history.pushState) {
history.pushState(null, null, '#' + hash);
} else {
document.location.hash = hash;
}
document.location.hash = hash;
}
el.trigger('smoothScrollerComplete');