From 3439760b8f77ea5659c68bd87fc14bfa5a51104d Mon Sep 17 00:00:00 2001 From: Imken Date: Wed, 21 Aug 2024 12:33:21 +0800 Subject: [PATCH] remove unnecessary cleanup --- src/highlight.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/highlight.js b/src/highlight.js index 946dafa817..ac44a1e115 100644 --- a/src/highlight.js +++ b/src/highlight.js @@ -822,7 +822,6 @@ const HLJS = function(hljs) { function boot() { // if a highlight was requested before DOM was loaded, do now highlightAll(); - window.removeEventListener('DOMContentLoaded', boot, false); } // if we are called too early in the loading process