Fix a typo in navigation.js (#1518)
This commit is contained in:
parent
8852c27641
commit
ddf74d23c3
1 changed files with 2 additions and 2 deletions
|
@ -7,14 +7,14 @@
|
||||||
( function() {
|
( function() {
|
||||||
const siteNavigation = document.getElementById( 'site-navigation' );
|
const siteNavigation = document.getElementById( 'site-navigation' );
|
||||||
|
|
||||||
// Return early if the navigation don't exist.
|
// Return early if the navigation doesn't exist.
|
||||||
if ( ! siteNavigation ) {
|
if ( ! siteNavigation ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const button = siteNavigation.getElementsByTagName( 'button' )[ 0 ];
|
const button = siteNavigation.getElementsByTagName( 'button' )[ 0 ];
|
||||||
|
|
||||||
// Return early if the button don't exist.
|
// Return early if the button doesn't exist.
|
||||||
if ( 'undefined' === typeof button ) {
|
if ( 'undefined' === typeof button ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue