mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #34051 from nextcloud/fix/34027/play-audio
fix: play single audio shares with the viewer
This commit is contained in:
commit
7e6dffd38c
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ OCA.Sharing.PublicApp = {
|
|||
});
|
||||
|
||||
if (OCA.Viewer && OCA.Viewer.mimetypes.includes(mimetype)
|
||||
&& (mimetype.startsWith('image/') || mimetype.startsWith('video/'))) {
|
||||
&& (mimetype.startsWith('image/') || mimetype.startsWith('video/') || mimetype.startsWith('audio'))) {
|
||||
OCA.Viewer.setRootElement('#imgframe')
|
||||
OCA.Viewer.open({ path: '/' })
|
||||
} else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue