mirror of
https://github.com/immich-app/immich.git
synced 2025-12-01 15:59:51 +09:00
refactor(web): remove buffer package (#11058)
This commit is contained in:
@@ -333,3 +333,6 @@ export const withError = async <T>(fn: () => Promise<T>): Promise<[undefined, T]
|
||||
export const suggestDuplicateByFileSize = (assets: AssetResponseDto[]): AssetResponseDto | undefined => {
|
||||
return sortBy(assets, (asset) => asset.exifInfo?.fileSizeInByte).pop();
|
||||
};
|
||||
|
||||
// eslint-disable-next-line unicorn/prefer-code-point
|
||||
export const decodeBase64 = (data: string) => Uint8Array.from(atob(data), (c) => c.charCodeAt(0));
|
||||
|
||||
Reference in New Issue
Block a user