diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-05-20 14:54:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 14:54:17 +0300 |
commit | 138eddc0f175148263fc8678dae1aa346fa3daeb (patch) | |
tree | f48d7cc6cb02c7d5a2c04020505bcbffd05cba95 | |
parent | 703d8f2adc5d5e533bb5175b313f2fb533a1b63d (diff) | |
parent | be37ca1776f5a75e051ef61a1b4f1c1e8cc819cf (diff) |
Merge pull request #21028 from nextcloud/backport/20629/stable19
[stable19] Don't load text file preview when text app is available (Fixes: #20615)
-rw-r--r-- | apps/files_sharing/js/public.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 982f32dbdd9..3986506bca8 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -152,7 +152,8 @@ OCA.Sharing.PublicApp = { img.attr('src', $('#downloadURL').val()); imgcontainer.appendTo('#imgframe'); } else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) { - if (OC.appswebroots['files_texteditor'] !== undefined) { + if (OC.appswebroots['files_texteditor'] !== undefined || + OC.appswebroots['text'] !== undefined) { // the text editor handles the previewing return; } |