diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-03 15:16:20 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-01-09 17:52:45 +0300 |
commit | 00b3f83dfb07e6e8317208883978aece2c82183a (patch) | |
tree | 90d265414f01bab9cc14002fdeae3f6c8f424055 /src | |
parent | bf1068c63b5bf9645acce510684362662e442197 (diff) |
Only register viewer plugin once
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/files.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/files.js b/src/files.js index 924a69d2b..23e37cede 100644 --- a/src/files.js +++ b/src/files.js @@ -48,12 +48,6 @@ document.addEventListener('DOMContentLoaded', () => { group: null, }) } - OCA.Viewer.registerHandler({ - id: 'text', - mimes: [...openMimetypesMarkdown, ...openMimetypesPlainText], - component: FilesEditor, - group: null, - }) OC.Plugins.register('OCA.Files.SidebarPreviewManager', new PreviewPlugin()) if (workspaceAvailable) { |