Merge pull request #20629 from mejo-/files_sharing_preview_text
Don't load text file preview when text app is available (Fixes: #20615)
This commit is contained in:
commit
91a2d5e012
|
@ -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