Skip to content

Commit 4e5b0e5

Browse files
committed
[toc2] allow non-live notebooks to be start minimized
1 parent f9b43ae commit 4e5b0e5

File tree

1 file changed

+1
-1
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/toc2

1 file changed

+1
-1
lines changed

src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@
319319
}
320320
else {
321321
// default to true for non-live notebook
322-
$.extend(true, cfg, {toc_window_display: true, toc_section_display: true});
322+
cfg.toc_window_display = true;
323323
}
324324
// restore toc position at load
325325
toc_wrapper.css(cfg.sideBar ? {width: toc_position.width} : toc_position);

0 commit comments

Comments
 (0)