Fix a typo in navigation.js (#1518)

This commit is contained in:
Ismail El Korchi 2022-01-01 22:36:42 +01:00 committed by GitHub
parent 8852c27641
commit ddf74d23c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,14 +7,14 @@
( function() {
const siteNavigation = document.getElementById( 'site-navigation' );
// Return early if the navigation don't exist.
// Return early if the navigation doesn't exist.
if ( ! siteNavigation ) {
return;
}
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 ) {
return;
}