Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(print): copy to clipboard button visible
Elian Doranc7369bc9b375
diff --git a/apps/client/src/services/syntax_highlight.ts b/apps/client/src/services/syntax_highlight.tsindex 89dc7c94e8..dd2bd48b47 100644--- a/apps/client/src/services/syntax_highlight.ts+++ b/apps/client/src/services/syntax_highlight.ts@@ -24,7 +24,9 @@ export async function formatCodeBlocks($container: JQuery<HTMLElement>) {continue;}- applyCopyToClipboardButton($(codeBlock));+ if (glob.device !== "print") {+ applyCopyToClipboardButton($(codeBlock));+ }if (syntaxHighlightingEnabled) {applySingleBlockSyntaxHighlight($(codeBlock), normalizedMimeType);