From 204c511a0483d1f47bc59bbc8f8e4ca0dfa4b210 Mon Sep 17 00:00:00 2001 From: William Patton Date: Thu, 19 Dec 2024 23:37:16 +0000 Subject: [PATCH] Use better variable name --- src/frontendHighlighterApp/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontendHighlighterApp/index.js b/src/frontendHighlighterApp/index.js index 6df6f494..deef8c2e 100644 --- a/src/frontendHighlighterApp/index.js +++ b/src/frontendHighlighterApp/index.js @@ -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; } };