Skip to content

Commit

Permalink
Merge pull request #3550 from nextcloud/backport/3549/stable28
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaertl committed Mar 26, 2024
2 parents 3b8bbb5 + 97895ef commit a429dc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mixins/openLocal.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ export default {
cancel: t('richdocuments', 'Continue editing online'),
},
(decision) => {
if (window.event?.target.classList.contains('oc-dialog-close')) {
return
}

if (!decision) {
window.OCA.Viewer.open({ path: fileName })
return
Expand Down

0 comments on commit a429dc2

Please sign in to comment.