mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00: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() {
|
||||
window.setTimeout(function(){
|
||||
var e = $("#sidebar ul.topics li.active")[0];
|
||||
if( e.scrollIntoView ){
|
||||
if( e && e.scrollIntoView ){
|
||||
e.scrollIntoView({
|
||||
block: 'center',
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue