From 4ad918ee6c3ef19ae97b82ed36e536e13fce4ced Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Sun, 20 Jun 2021 08:30:41 -0400 Subject: [PATCH] try #8 --- homepage/knowledge/cat.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homepage/knowledge/cat.html b/homepage/knowledge/cat.html index 6a607ad..8810136 100644 --- a/homepage/knowledge/cat.html +++ b/homepage/knowledge/cat.html @@ -27,11 +27,11 @@ window.load_highlighting = function(language){ document.body.appendChild(script); window.is_hljs_here = 1; } - if(window.ishighlighted.indexOf(language) == -1){ + if(window.is_highlighted.indexOf(language) == -1){ script = document.createElement('script'); script.src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/languages/" + language + ".min.js"; document.body.appendChild(script); - window.ishighlighted.push(language); + window.is_highlighted.push(language); } }