We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--old-toc
1 parent b9a817d commit 1659ed0Copy full SHA for 1659ed0
js/menu.js
@@ -771,7 +771,9 @@ let referencePane = {
771
this.$tableContainer.appendChild(this.$table);
772
this.$pane.appendChild(this.$tableContainer);
773
774
- menu.$specContainer.appendChild(this.$container);
+ if (menu != null) {
775
+ menu.$specContainer.appendChild(this.$container);
776
+ }
777
},
778
779
activate() {
@@ -1106,6 +1108,9 @@ function doShortcut(e) {
1106
1108
}
1107
1109
1110
function init() {
1111
+ if (document.getElementById('menu') == null) {
1112
+ return;
1113
1114
menu = new Menu();
1115
let $container = document.getElementById('spec-container');
1116
$container.addEventListener(
0 commit comments