We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9853b7a + 81f76b1 commit 0c8be7eCopy full SHA for 0c8be7e
1 file changed
src/viewer.js
@@ -8,16 +8,16 @@ import '../css/filetypes.scss'
8
9
import { getCapabilities } from './services/capabilities.ts'
10
import { autoSetupBuiltInCodeServerIfNeeded } from './services/builtInCode.ts'
11
-import Viewer from './view/Viewer.vue'
12
13
const supportedMimes = getCapabilities().mimetypes
+const AsyncViewerComponent = () => import('./view/Viewer.vue')
14
15
if (OCA.Viewer) {
16
OCA.Viewer.registerHandler({
17
id: 'richdocuments',
18
group: null,
19
mimes: supportedMimes,
20
- component: Viewer,
+ component: AsyncViewerComponent,
21
theme: 'default',
22
canCompare: true,
23
})
0 commit comments