Skip to content

Commit

Permalink
Use better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonwebz authored Dec 19, 2024
1 parent cc771a3 commit 204c511
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontendHighlighterApp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,14 +894,14 @@ class AccessibilityCheckerHighlight {
// Some systems (Cloudflare Rocket Loader) defers scripts for performance but that can
// cause some DOMContentLoaded events to be missed. This is flag tracks if it run so we
// can retry at a latter event listener.
let initHasRun = false;
let highlighterInitialized = false;
const initHighlighter = () => {
if ( ! initHasRun ) {
if ( ! highlighterInitialized ) {
new AccessibilityCheckerHighlight();
if ( window.edacFrontendHighlighterApp?.userCanFix ) {
fixSettingsModalInit();
}
initHasRun = true;
highlighterInitialized = true;
}
};

Expand Down

0 comments on commit 204c511

Please sign in to comment.