Merge remote-tracking branch 'origin/stable'

# Conflicts:
#	src/public/app/widgets/note_tree.js
This commit is contained in:
zadam 2020-08-27 23:25:10 +02:00
commit 020a8766c8
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ async function getRenderedContent(note) {
function getRenderingType(note) { function getRenderingType(note) {
let type = note.type; let type = note.type;
if (type === 'file' && note.mime === 'application/pdf' && utils.isElectron()) { if (type === 'file' && note.mime === 'application/pdf') {
type = 'pdf'; type = 'pdf';
} }

View File

@ -138,7 +138,7 @@ export default class FileTypeWidget extends TypeWidget {
this.$previewContent.show().scrollTop(0); this.$previewContent.show().scrollTop(0);
this.$previewContent.text(noteComplement.content); this.$previewContent.text(noteComplement.content);
} }
else if (note.mime === 'application/pdf' && utils.isElectron()) { else if (note.mime === 'application/pdf') {
this.$pdfPreview.show(); this.$pdfPreview.show();
this.$pdfPreview.attr("src", utils.getUrlForDownload("api/notes/" + this.noteId + "/open")); this.$pdfPreview.attr("src", utils.getUrlForDownload("api/notes/" + this.noteId + "/open"));
} }