mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Chore: Fixed attachFile method
This commit is contained in:
parent
7d87d0b394
commit
073781da92
@ -366,6 +366,7 @@ function shimInit(options = null) {
|
||||
};
|
||||
|
||||
shim.attachFileToNote = async function(note, filePath, position = null, options = null) {
|
||||
if (!options) options = {};
|
||||
if (note.markup_language) options.markupLanguage = note.markup_language;
|
||||
const newBody = await shim.attachFileToNoteBody(note.body, filePath, position, options);
|
||||
if (!newBody) return null;
|
||||
|
Loading…
Reference in New Issue
Block a user