Skip to content

Commit 138eddc

Browse files
authored
Merge pull request #21028 from nextcloud/backport/20629/stable19
[stable19] Don't load text file preview when text app is available (Fixes: #20615)
2 parents 703d8f2 + be37ca1 commit 138eddc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/files_sharing/js/public.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ OCA.Sharing.PublicApp = {
152152
img.attr('src', $('#downloadURL').val());
153153
imgcontainer.appendTo('#imgframe');
154154
} else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) {
155-
if (OC.appswebroots['files_texteditor'] !== undefined) {
155+
if (OC.appswebroots['files_texteditor'] !== undefined ||
156+
OC.appswebroots['text'] !== undefined) {
156157
// the text editor handles the previewing
157158
return;
158159
}

0 commit comments

Comments
 (0)