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
|
@ -152,7 +152,8 @@ OCA.Sharing.PublicApp = {
|
||||||
img.attr('src', $('#downloadURL').val());
|
img.attr('src', $('#downloadURL').val());
|
||||||
imgcontainer.appendTo('#imgframe');
|
imgcontainer.appendTo('#imgframe');
|
||||||
} else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) {
|
} 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
|
// the text editor handles the previewing
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue