mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 09:13:38 +01:00
toc.js: fix wrong urls
This commit is contained in:
parent
67fd915c24
commit
5580ae658d
6
assets/_src/js/vendor/toc.js
vendored
6
assets/_src/js/vendor/toc.js
vendored
@ -25,11 +25,7 @@
|
|||||||
var hash = el.attr('id');
|
var hash = el.attr('id');
|
||||||
|
|
||||||
if (hash.length) {
|
if (hash.length) {
|
||||||
if (history.pushState) {
|
document.location.hash = hash;
|
||||||
history.pushState(null, null, '#' + hash);
|
|
||||||
} else {
|
|
||||||
document.location.hash = hash;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
el.trigger('smoothScrollerComplete');
|
el.trigger('smoothScrollerComplete');
|
||||||
|
Loading…
Reference in New Issue
Block a user