mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 11:42:30 +03:00
fix: do not resolve srcset for urls (#6367)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
29a4276bbd
commit
0e72b85978
@ -54,6 +54,10 @@ export function getSrcSet (_blob: Ref<Blob>, width?: number): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function blobToSrcSet (cfg: PreviewConfig, blob: Ref<Blob>, width: number | undefined): string {
|
function blobToSrcSet (cfg: PreviewConfig, blob: Ref<Blob>, width: number | undefined): string {
|
||||||
|
if (blob.includes('://')) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
let url = cfg.previewUrl.replaceAll(':workspace', encodeURIComponent(getCurrentWorkspace()))
|
let url = cfg.previewUrl.replaceAll(':workspace', encodeURIComponent(getCurrentWorkspace()))
|
||||||
const downloadUrl = getFileUrl(blob)
|
const downloadUrl = getFileUrl(blob)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user