1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-14 07:04:24 +02:00

fix(web): load panorama in shared link (#8060)

* fix(web): load panorama in shared link

* remove console log
This commit is contained in:
Alex
2024-03-18 22:39:49 -05:00
committed by GitHub
parent 50924f0b3d
commit 51841d627c

View File

@ -2,11 +2,11 @@
import { serveFile, type AssetResponseDto } from '@immich/sdk';
import { fade } from 'svelte/transition';
import LoadingSpinner from '../shared-components/loading-spinner.svelte';
import { getKey } from '$lib/utils';
export let asset: AssetResponseDto;
const loadAssetData = async () => {
const data = await serveFile({ id: asset.id, isWeb: false, isThumb: false });
const data = await serveFile({ id: asset.id, isWeb: false, isThumb: false, key: getKey() });
return URL.createObjectURL(data);
};
</script>