Skip to content

Commit

Permalink
Use new viewer syntax with destructuring object
Browse files Browse the repository at this point in the history
With nextcloud/viewer#936 and Nextcloud 22 the old syntax will not be supported anymore.

Signed-off-by: Azul <azul@riseup.net>
  • Loading branch information
azul committed Jun 5, 2021
1 parent 3e2c8f7 commit 8cff3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RecommendedFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
},
navigate() {
if (OCA.Viewer && OCA.Viewer.mimetypes.indexOf(this.mimeType) !== -1) {
OCA.Viewer.open(this.path)
OCA.Viewer.open({ path: this.path })
return
}
if (this.isFileListAvailable) {
Expand Down

0 comments on commit 8cff3dd

Please sign in to comment.