We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c174f62 commit 32051daCopy full SHA for 32051da
_javascript/modules/components/toc.js
@@ -27,6 +27,9 @@ function init() {
27
mobile.init();
28
}
29
30
+ const $tocWrapper = document.getElementById('toc-wrapper');
31
+ $tocWrapper.classList.remove('invisible');
32
+
33
desktopMode.onchange = refresh;
34
35
_javascript/modules/components/toc/toc-desktop.js
@@ -15,11 +15,6 @@ export class TocDesktop {
15
16
17
static init() {
18
- const $tocWrapper = document.getElementById('toc-wrapper');
19
-
20
- if ($tocWrapper) {
21
- tocbot.init(this.options);
22
- $tocWrapper.classList.remove('invisible');
23
- }
+ tocbot.init(this.options);
24
25
0 commit comments