From 0f25c8a95f381d99b66735b9c0af3e319edb72ed Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 1 Feb 2020 10:17:03 +0100 Subject: [PATCH] autobook should not be active on the mobile interface --- src/public/javascripts/services/tab_context.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/public/javascripts/services/tab_context.js b/src/public/javascripts/services/tab_context.js index 74c885c17..67c2e21b5 100644 --- a/src/public/javascripts/services/tab_context.js +++ b/src/public/javascripts/services/tab_context.js @@ -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'; }