1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00
This commit is contained in:
Alex Tran 2022-10-28 21:00:31 -05:00
parent 137b2ffdd0
commit 811494e9ed
No known key found for this signature in database
GPG key ID: E4954BC787B85C8A

View file

@ -12,14 +12,14 @@
let assetInfo: AssetResponseDto;
let assetData: string;
let copyImageToClipboard : (src: string) => Promise<Blob>;
let copyImageToClipboard: (src: string) => Promise<Blob>;
onMount(async () => {
const { data } = await api.assetApi.getAssetById(assetId);
assetInfo = data;
//Import hack :( see https://github.com/vadimkorr/svelte-carousel/issues/27#issuecomment-851022295
const module = await import('copy-image-clipboard')
const module = await import('copy-image-clipboard');
copyImageToClipboard = module.copyImageToClipboard;
});