Skip to content

Commit e34fdf6

Browse files
committed
Bug fix in notepadhandler adding pictures
1 parent daf7611 commit e34fdf6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fails-components/notepadhandler",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Supplies server side notepad handling",
55
"author": "Marten Richter",
66
"license": "AGPL-3.0-or-later",

src/notepadhandler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,8 @@ export class NoteScreenConnection {
759759
name: el.name,
760760
mimetype: el.mimetype,
761761
sha: el.sha.buffer.toString('hex'),
762-
url: this.getFileURL(el.sha.buffer),
763-
urlthumb: this.getFileURL(el.tsha.buffer)
762+
url: this.getFileURL(el.sha.buffer, el.mimetype),
763+
urlthumb: this.getFileURL(el.tsha.buffer, el.mimetype)
764764
}
765765
})
766766
} catch (err) {

0 commit comments

Comments
 (0)