Skip to content

Commit

Permalink
Fix setFullScreenMode on talk viewer opening
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
skjnldsv authored and nextcloud-command committed Aug 17, 2022
1 parent 462c723 commit 37baf15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export default {
this.cancelRequestFile()
this.cancelRequestFolder()
if (OCA?.Files?.Sidebar) {
if (OCA?.Files?.Sidebar?.setFullScreenMode) {
OCA.Files.Sidebar.setFullScreenMode(true)
}
Expand Down Expand Up @@ -673,7 +673,7 @@ export default {
// which then triggers cleanup.
OCA.Viewer.close()
if (OCA?.Files?.Sidebar) {
if (OCA?.Files?.Sidebar?.setFullScreenMode) {
OCA.Files.Sidebar.setFullScreenMode(false)
}
},
Expand Down

0 comments on commit 37baf15

Please sign in to comment.