activate PDF preview also in server build, fixes #1208

This commit is contained in:
zadam
2020-08-27 23:22:36 +02:00
parent e8d63b5647
commit 26dfa1ffdb
3 changed files with 4 additions and 5 deletions

View File

@@ -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';
}