diff --git a/src/components/textNote/ImageDisplay.tsx b/src/components/textNote/ImageDisplay.tsx index d8d6264..e52ebeb 100644 --- a/src/components/textNote/ImageDisplay.tsx +++ b/src/components/textNote/ImageDisplay.tsx @@ -12,6 +12,9 @@ const fixUrl = (url: URL): string => { const imageId = match[1]; result.pathname = `${imageId}l.webp`; } + } else if (url.host === 'i.gyazo.com') { + result.host = 'thumb.gyazo.com'; + result.pathname = `/thumb/640_w${url.pathname}`; } return result.toString(); };