mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
Merge pull request #21028 from nextcloud/backport/20629/stable19
[stable19] Don't load text file preview when text app is available (Fixes: #20615)
This commit is contained in:
commit
138eddc0f1
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue