diff options
author | Jonas Meurer <jonas@freesources.org> | 2020-04-23 13:45:10 +0200 |
---|---|---|
committer | Jonas Meurer <jonas@freesources.org> | 2020-04-24 11:14:21 +0200 |
commit | afeeb1eb1f35cd4e661ade0be7074d5c7369020b (patch) | |
tree | bdbfa03b14f48cbe947123bd6404420666add08f /apps/files_sharing/js | |
parent | 84a35361599640d838815a4127eab58e49f052fc (diff) | |
download | nextcloud-server-afeeb1eb1f35cd4e661ade0be7074d5c7369020b.tar.gz nextcloud-server-afeeb1eb1f35cd4e661ade0be7074d5c7369020b.zip |
Don't load text file preview when text app is available (Fixes: #20615)
When opening a shared text document, the files_sharing app uses
internal preview support in case no other app to open the text file is
available.
So far, it only checks for the old files_texteditor app, not for the new
new text app. This commit fixes this by checking for both.
Signed-off-by: Jonas Meurer <jonas@freesources.org>
Diffstat (limited to 'apps/files_sharing/js')
-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; } |