Skip to content

Commit 8c2b00b

Browse files
committed
style: Fixed variable already declared
1 parent 3919d4f commit 8c2b00b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/js/extra.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ export function generateToc (id) {
750750
'targetId': id,
751751
'process': getHeaderContent
752752
})
753-
/* eslint-enable no-unsed-vars */
753+
/* eslint-enable no-unused-vars */
754754
if (target.text() === 'undefined') { target.html('') }
755755
const tocMenu = $('<div class="toc-menu"></div')
756756
const toggle = $('<a class="expand-toggle" href="#">Expand all</a>')
@@ -888,7 +888,7 @@ export function renderTOC (view) {
888888
const target = $(`#${id}`)
889889
target.html('')
890890
/* eslint-disable no-unused-vars */
891-
var toc = new window.Toc('doc', {
891+
let TOC = new window.Toc('doc', {
892892
'level': 3,
893893
'top': -1,
894894
'class': 'toc',

0 commit comments

Comments
 (0)