From 4c373dd57c949d8480bfc5d949b8d6679ef154fe Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Thu, 7 Nov 2019 12:22:28 +0700 Subject: [PATCH] fixes and cleanups --- src/utils/dom.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils/dom.ts b/src/utils/dom.ts index a6c51350..7a18871a 100644 --- a/src/utils/dom.ts +++ b/src/utils/dom.ts @@ -63,7 +63,7 @@ export const getURL = (file: Partial, size?: typeof PRESETS[keyof typeof if (size) { return file.url - .replace('REMOTE_CURRENT://', `${process.env.REMOTE_CURRENT}/cache/${size}/`) + .replace('REMOTE_CURRENT://', `${process.env.REMOTE_CURRENT}cache/${size}/`) .replace('REMOTE_OLD://', process.env.REMOTE_OLD); } @@ -72,9 +72,6 @@ export const getURL = (file: Partial, size?: typeof PRESETS[keyof typeof .replace('REMOTE_OLD://', process.env.REMOTE_OLD); }; -// export const getImageSize = (file: IFile, size?: string): string => getURL(file); -// `${process.env.API_HOST}${image}`.replace('{size}', size); - export const formatText = (text: string): string => !text ? ''