Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-10-28 14:22:03 +0300
committerJulius Härtl <jus@bitgrid.net>2019-11-04 21:36:50 +0300
commit4438f21b60b85502885fd7ad6d4b39aa9a0f26b9 (patch)
tree8174e74ad64907cf661c1bc6aa280a6dedb221e7 /src/files.js
parentbb27d1f9dda35eebcff3101fb14b38acf8e0736b (diff)
Autohide only for rich workspaces
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/files.js')
-rw-r--r--src/files.js8
1 files changed, 7 insertions, 1 deletions
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',