Skip to content

Commit 7357968

Browse files
Merge pull request #34 from ThisIs-Developer/copilot/fix-integration-error-and-warnings
Fix invalid pako SRI hash and hljs double-highlight warning
2 parents 8424904 + bfc7301 commit 7357968

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

desktop-app/resources/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ This is a fully client-side application. Your content never leaves your browser
302302

303303
markdownPreview.querySelectorAll("pre code").forEach((block) => {
304304
try {
305-
if (!block.classList.contains('mermaid')) {
305+
if (!block.classList.contains('mermaid') && !block.classList.contains('hljs')) {
306306
hljs.highlightElement(block);
307307
}
308308
} catch (e) {

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/pdfmake.min.js"></script>
5656
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/vfs_fonts.js"></script>
57-
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako.min.js" integrity="sha384-OLBgp1GsljhM2TJ+sbHjaiH9txEUvgdDTAzHv2P24donTt6/529l+9Ua0vFImLlb" crossorigin="anonymous"></script>
57+
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako.min.js" integrity="sha384-rNlaE5fs9dGIjmxWDALQh/RBAaGRYT5ChrzHo6tRfgrZ36iRFAiquP5g41Jsv+0j" crossorigin="anonymous"></script>
5858
</head>
5959
<body>
6060
<div class="app-container">

script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ This is a fully client-side application. Your content never leaves your browser
304304

305305
markdownPreview.querySelectorAll("pre code").forEach((block) => {
306306
try {
307-
if (!block.classList.contains('mermaid')) {
307+
if (!block.classList.contains('mermaid') && !block.classList.contains('hljs')) {
308308
hljs.highlightElement(block);
309309
}
310310
} catch (e) {

0 commit comments

Comments
 (0)