panel minor fixes
Some checks failed
Deploy on push / deploy (push) Failing after 4m20s

This commit is contained in:
2025-09-16 11:48:19 +03:00
parent 78bc110685
commit 4ea32e3b83
11 changed files with 64 additions and 64 deletions

View File

@@ -33,7 +33,7 @@ const HTMLEditor = (props: HTMLEditorProps) => {
const attemptHighlight = (attempts = 0) => {
if (attempts > 3) return // Максимум 3 попытки
if (typeof window !== 'undefined' && window.Prism && element) {
if (window?.Prism && element) {
try {
Prism.highlightElement(element)
} catch (error) {