We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9104028 + d8ff712 commit 7e6dffdCopy full SHA for 7e6dffd
apps/files_sharing/js/public.js
@@ -153,7 +153,7 @@ OCA.Sharing.PublicApp = {
153
});
154
155
if (OCA.Viewer && OCA.Viewer.mimetypes.includes(mimetype)
156
- && (mimetype.startsWith('image/') || mimetype.startsWith('video/'))) {
+ && (mimetype.startsWith('image/') || mimetype.startsWith('video/') || mimetype.startsWith('audio'))) {
157
OCA.Viewer.setRootElement('#imgframe')
158
OCA.Viewer.open({ path: '/' })
159
} else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) {
0 commit comments