From cdaea4142bd185cc7560284d00d4e52fd702d132 Mon Sep 17 00:00:00 2001 From: bruno Date: Sat, 25 Jul 2026 10:35:18 -0400 Subject: [PATCH] fix: remove duplicate safeHighlight declaration in utils.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Caused 'Identifier already declared' error — app won't load - Original safeHighlight at line 250 (initEditor scope), duplicate removed --- frontend/js/utils.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/js/utils.js b/frontend/js/utils.js index 2b0ce1a..b5ab338 100644 --- a/frontend/js/utils.js +++ b/frontend/js/utils.js @@ -650,10 +650,6 @@ function initEditor() { ); } -function safeHighlight(block) { - try { hljs.highlightElement(block); } catch (e) { /* skip */ } -} - /** Copy text to clipboard — works on both HTTP and HTTPS */ function copyToClipboard(text) { // Try modern API first (HTTPS-only)