mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-19 03:10:24 +00:00
menu: avoid console log on landing page #79
This commit is contained in:
parent
40fec76fae
commit
b75b8572c5
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ function initMermaid() {
|
||||||
function scrollToActiveMenu() {
|
function scrollToActiveMenu() {
|
||||||
window.setTimeout(function(){
|
window.setTimeout(function(){
|
||||||
var e = $("#sidebar ul.topics li.active")[0];
|
var e = $("#sidebar ul.topics li.active")[0];
|
||||||
if( e.scrollIntoView ){
|
if( e && e.scrollIntoView ){
|
||||||
e.scrollIntoView({
|
e.scrollIntoView({
|
||||||
block: 'center',
|
block: 'center',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue