Fix includeAuthorNotes option

This commit is contained in:
daniel-j 2020-08-20 09:26:29 +02:00
parent e67d4f4637
commit a393a6e0ef

View file

@ -412,7 +412,7 @@ class FimFic2Epub extends EventEmitter {
link: this.options.addCommentsLink ? ch.link : null,
linkNotes: this.options.includeAuthorNotes && this.options.useAuthorNotesIndex && chapter.notes ? 'note_' + zeroFill(3, i + 1) + '.xhtml' : null,
content: content,
notes: !this.options.useAuthorNotesIndex ? chapter.notes : '',
notes: this.options.includeAuthorNotes && !this.options.useAuthorNotesIndex ? chapter.notes : '',
notesFirst: chapter.notesFirst,
index: i
})).then((html) => {