Update packages/frontend/src/components/MkNote.stories.ts

Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
This commit is contained in:
果物リン 2024-09-29 19:04:56 +09:00 committed by GitHub
parent 68c7aa266b
commit d422434f6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,9 +64,7 @@ export const Default = {
if (
url.href.startsWith('https://github.com/misskey-dev/misskey/blob/master/packages/frontend/assets/')
) {
const image = await (
await fetch(`client-assets/${url.pathname.split('/').pop()}`)
).blob();
const image = await(await fetch(`client-assets/${url.pathname.split('/').pop()}`)).blob();
return new HttpResponse(image, {
headers: {
'Content-Type': 'image/jpeg',