Make WordPress Core

Changeset 55972


Ignore:
Timestamp:
06/21/2023 09:52:46 PM (8 months ago)
Author:
audrasjb
Message:

Twenty Nineteen: Fix a JS coding standard issue found after [55970].

Follow-up to [55970].

See #46474.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js

    r55970 r55972  
    275275        document.addEventListener('focus', function(event) {
    276276
    277             if ( event.target != window.document && event.target.matches( '.main-navigation > div > ul > li a' ) ) {
     277            if ( event.target !== window.document && event.target.matches( '.main-navigation > div > ul > li a' ) ) {
    278278
    279279                // Remove Focused elements in sibling div.
Note: See TracChangeset for help on using the changeset viewer.