autobook should not be active on the mobile interface

This commit is contained in:
zadam 2020-02-01 10:17:03 +01:00
parent 1a49894adf
commit 0f25c8a95f

View File

@ -303,7 +303,11 @@ class TabContext {
let type = this.note.type;
if (type === 'text' && !disableAutoBook && utils.isHtmlEmpty(this.note.content) && this.note.hasChildren()) {
if (type === 'text'
&& !disableAutoBook
&& utils.isHtmlEmpty(this.note.content)
&& this.note.hasChildren()
&& utils.isDesktop()) {
type = 'book';
}