There was an error while loading. Please reload this page.
2 parents e5fe1cf + e6913a2 commit c9dc60aCopy full SHA for c9dc60a
1 file changed
apps/viewer/apps/viewer/src/utils/previewUtils.ts
@@ -27,7 +27,7 @@ export function getPreviewIfAny({ fileid, filename, previewUrl, hasPreview, davP
27
+ `&x=${Math.floor(screen.width * devicePixelRatio)}`
28
+ `&y=${Math.floor(screen.height * devicePixelRatio)}`
29
+ '&a=true'
30
- + (etag !== null ? `&etag=${etag.replace(/"/g, '')}` : '')
+ + (etag ? `&etag=${String(etag).replace(/"/g, '')}` : '')
31
32
if (hasPreview) {
33
// TODO: find a nicer standard way of doing this?
0 commit comments