Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion js/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
( function () {
var container;
container = document.getElementById( 'site-navigation' );
if ( ! container ) {
return;
}

/**
* Toggles `focus` class to allow submenu access on tablets.
Expand Down Expand Up @@ -180,7 +183,7 @@
}

// Return if no excess menu items.
if ( ! navigation.classList.contains( 'tg-extra-menus' ) ) {
if ( ! navigation || ! navigation.classList.contains( 'tg-extra-menus' ) ) {
return;
}

Expand Down
Loading