fix: remove duplicate safeHighlight declaration in utils.js
- Caused 'Identifier already declared' error — app won't load - Original safeHighlight at line 250 (initEditor scope), duplicate removed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user