From 4f98c960ec04d0a2e99005ce593a5eee1db59989 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 15 Jan 2023 19:23:28 +0100 Subject: [PATCH] fix note revision for images --- src/public/app/widgets/dialogs/note_revisions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/app/widgets/dialogs/note_revisions.js b/src/public/app/widgets/dialogs/note_revisions.js index 6bad87617..9caab652f 100644 --- a/src/public/app/widgets/dialogs/note_revisions.js +++ b/src/public/app/widgets/dialogs/note_revisions.js @@ -240,8 +240,8 @@ export default class NoteRevisionsDialog extends BasicWidget { else if (revisionItem.type === 'image') { this.$content.html($("") // reason why we put this inline as base64 is that we do not want to let user to copy this - // as a URL to be used in a note. Instead if they copy and paste it into a note, it will be a uploaded as a new note - .attr("src", `data:${note.mime};base64,${fullNoteRevision.content}`) + // as a URL to be used in a note. Instead, if they copy and paste it into a note, it will be a uploaded as a new note + .attr("src", `data:${fullNoteRevision.mime};base64,${fullNoteRevision.content}`) .css("max-width", "100%") .css("max-height", "100%")); }