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>
  • Loading branch information
skjnldsv committed Aug 17, 2022
1 parent 462c723 commit 88814c7
Showing 1 changed file with 2 additions and 2 deletions.
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 88814c7

Please sign in to comment.