From 4438f21b60b85502885fd7ad6d4b39aa9a0f26b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 28 Oct 2019 12:22:03 +0100 Subject: Autohide only for rich workspaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/files.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/files.js') diff --git a/src/files.js b/src/files.js index b2bab8c1b..8f618d762 100644 --- a/src/files.js +++ b/src/files.js @@ -34,7 +34,13 @@ document.addEventListener('DOMContentLoaded', () => { if (typeof OCA.Viewer === 'undefined') { console.error('Viewer app is not installed') registerFileActionFallback() - return + } else { + OCA.Viewer.registerHandler({ + id: 'text', + mimes: [...openMimetypesMarkdown, ...openMimetypesPlainText], + component: FilesEditor, + group: null, + }) } OCA.Viewer.registerHandler({ id: 'text', -- cgit v1.2.3