mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
chore (viewerpage): refactor for plugins
This commit is contained in:
parent
2c09815c4e
commit
e7c8ee3bc9
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ export default WithShell(async function(render) {
|
|||
// feature: render viewer application
|
||||
effect(rxjs.of(getConfig("mime", {})).pipe(
|
||||
rxjs.map((mimes) => opener(basename(getCurrentPath()), mimes)),
|
||||
rxjs.mergeMap(([opener, opts]) => rxjs.from(loadModule(opener)).pipe(rxjs.tap((module) => {
|
||||
rxjs.mergeMap(([opener, opts]) => rxjs.from(loadModule(opener)).pipe(rxjs.switchMap(async (module) => {
|
||||
module.default(createRender($page), { ...opts, acl$: options(), getFilename, getDownloadUrl });
|
||||
}))),
|
||||
rxjs.catchError(ctrlError()),
|
||||
|
|
|
|||
Loading…
Reference in a new issue