blob: 4c1d76628ebc216c78c7f5489b08bba5a8698274 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import Office from './view/Office'
const supportedMimes = OC.getCapabilities().richdocuments.mimetypes.concat(OC.getCapabilities().richdocuments.mimetypesNoDefaultOpen)
document.addEventListener('DOMContentLoaded', function(event) {
// Only use it outside the files app for now
if (typeof OCA !== 'undefined'
&& typeof OCA.Files !== 'undefined'
&& typeof OCA.Files.fileActions !== 'undefined'
) {
return
}
if (OCA.Viewer) {
OCA.Viewer.registerHandler({
id: 'richdocuments',
group: null,
mimes: supportedMimes,
component: Office
})
}
})
|