Skip to content

Commit

Permalink
Enable thumbnails (preview service) by default
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas committed Nov 21, 2024
1 parent 703f726 commit 71941fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-pkg/src/services/preview/previewService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export class PreviewService {
}

private get available(): boolean {
return !!this.capabilityStore.filesThumbnail?.version
// By default use v0.1 (to enable thumbnails by default)
return !!(this.capabilityStore.filesThumbnail || {version: 'v0.1'}).version
}

private get supportedMimeTypes() {
Expand Down

0 comments on commit 71941fc

Please sign in to comment.