Skip to content

Commit ac1200e

Browse files
committed
Enable thumbnails (preview service) by default
1 parent 703f726 commit ac1200e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/web-pkg/src/services/preview/previewService.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export class PreviewService {
3737
}
3838

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

4344
private get supportedMimeTypes() {

0 commit comments

Comments
 (0)