Skip to content

Build your personal knowledge base with Trilium Notes

feat(pdf): hide the option if not electron

Elian Doran7813c896c3ef
diff --git a/src/public/app/widgets/buttons/note_actions.ts b/src/public/app/widgets/buttons/note_actions.ts
index c53c0b84ab..dc332b5416 100644
--- a/src/public/app/widgets/buttons/note_actions.ts
+++ b/src/public/app/widgets/buttons/note_actions.ts
@@ -194,6 +194,7 @@ export default class NoteActionsWidget extends NoteContextAwareWidget {
const canPrint = ["text", "code"].includes(note.type);
this.toggleDisabled(this.$printActiveNoteButton, canPrint);
this.toggleDisabled(this.$exportAsPdfButton, canPrint);
+ this.$exportAsPdfButton.toggleClass("hidden-ext", !utils.isElectron());
this.$renderNoteButton.toggle(note.type === "render");