diff --git a/frontend/app.js b/frontend/app.js index 03044e9..e175998 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -1,9 +1,10 @@ import {CodeJar} from "./codejar.js" -const highlight = editor => { - editor.textContent = editor.textContent - hljs.highlightElement(editor) -} +function highlight(editor) { + editor.textContent = editor.textContent; + editor.removeAttribute("data-highlighted"); + hljs.highlightElement(editor); +} function base64ToBytes(base64) { const binString = atob(base64);