Selaa lähdekoodia

Add small delay for the syntax highlighting

simov 9 vuotta sitten
vanhempi
sitoutus
9991695133
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      content/content.js

+ 1 - 1
content/content.js

@@ -64,7 +64,7 @@ window.addEventListener('DOMContentLoaded', () => {
         html: (element, initialized, context) => {
           if (!initialized) {
             document.body.scrollTop = parseInt(localStorage.getItem('scrolltop'))
-            Prism.highlightAll()
+            setTimeout(() => Prism.highlightAll(), 20)
           }
         }
       }