mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-16 22:53:25 +01:00
Update packages/frontend/src/components/MkNote.stories.ts
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
This commit is contained in:
parent
68c7aa266b
commit
d422434f6b
1 changed files with 1 additions and 3 deletions
|
@ -64,9 +64,7 @@ export const Default = {
|
||||||
if (
|
if (
|
||||||
url.href.startsWith('https://github.com/misskey-dev/misskey/blob/master/packages/frontend/assets/')
|
url.href.startsWith('https://github.com/misskey-dev/misskey/blob/master/packages/frontend/assets/')
|
||||||
) {
|
) {
|
||||||
const image = await (
|
const image = await(await fetch(`client-assets/${url.pathname.split('/').pop()}`)).blob();
|
||||||
await fetch(`client-assets/${url.pathname.split('/').pop()}`)
|
|
||||||
).blob();
|
|
||||||
return new HttpResponse(image, {
|
return new HttpResponse(image, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'image/jpeg',
|
'Content-Type': 'image/jpeg',
|
||||||
|
|
Loading…
Reference in a new issue