mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
activate PDF preview also in server build, fixes #1208
This commit is contained in:
@@ -92,7 +92,7 @@ async function getRenderedContent(note) {
|
||||
function getRenderingType(note) {
|
||||
let type = note.type;
|
||||
|
||||
if (type === 'file' && note.mime === 'application/pdf' && utils.isElectron()) {
|
||||
if (type === 'file' && note.mime === 'application/pdf') {
|
||||
type = 'pdf';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user