Skip to content

Commit 09a9321

Browse files
authored
Merge pull request #54 from starknet-io/toc-fix
Fixed TOC bug
2 parents 967b862 + c853a59 commit 09a9321

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

build/ui-bundle.zip

5 Bytes
Binary file not shown.

src/js/02-on-this-page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
headingsSelector.push(headingSelector.join('>'))
2222
}
2323
var headings = find(headingsSelector.join(','), article.parentNode)
24-
if (!headings.length) return sidebar.parentNode.removeChild(sidebar)
24+
if (!headings.length) return
2525

2626
var lastActiveFragment
2727
var links = {}

0 commit comments

Comments
 (0)