Skip to content

Commit

Permalink
fix: remove debug statement
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Oct 12, 2023
1 parent 9e30d25 commit d584200
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 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: 1 addition & 3 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -928,12 +928,10 @@ export default {
default: DefaultType.DEFAULT,
enabled: (nodes) => {
// Faster to check if at least one node doesn't match the requirements
const test = !nodes.some(node => (
return !nodes.some(node => (
(node.permissions & Permission.READ) === 0
|| !this.Viewer.mimetypes.includes(node.mime)
))
console.debug(test)
return test
},
exec: filesActionHandler,
}))
Expand Down

0 comments on commit d584200

Please sign in to comment.